summaryrefslogtreecommitdiff
path: root/test/integration/test-bug-611729-mark-as-manual
diff options
context:
space:
mode:
authorDavid Kalnischkies <david@kalnischkies.de>2016-01-25 19:14:37 +0100
committerDavid Kalnischkies <david@kalnischkies.de>2016-01-25 19:14:37 +0100
commit0479205d5869805da3122e2683d2e5ecd0058815 (patch)
tree6c8d4ae961df7e32dc05cabef49fb62f1008305e /test/integration/test-bug-611729-mark-as-manual
parenta249b3e6fd798935a02b769149c9791a6fa6ef16 (diff)
fix tests run via sudo checking the history file
Git-Dch: Ignore
Diffstat (limited to 'test/integration/test-bug-611729-mark-as-manual')
-rwxr-xr-xtest/integration/test-bug-611729-mark-as-manual8
1 files changed, 7 insertions, 1 deletions
diff --git a/test/integration/test-bug-611729-mark-as-manual b/test/integration/test-bug-611729-mark-as-manual
index bd9af32b6..97ef846e3 100755
--- a/test/integration/test-bug-611729-mark-as-manual
+++ b/test/integration/test-bug-611729-mark-as-manual
@@ -56,8 +56,14 @@ testdpkginstalled b c
testmarkedauto 'b'
sed -i rootdir/var/log/apt/history.log -e '/^Commandline: / d' -e '/^Start-Date: / d' -e '/^End-Date: / d'
-testfileequal 'rootdir/var/log/apt/history.log' '
+if [ -n "$SUDO_USER" ]; then
+ testfileequal 'rootdir/var/log/apt/history.log' "
+Requested-By: $SUDO_USER ($(id -u "$SUDO_USER"))
+Reinstall: b:i386 (1.0)"
+else
+ testfileequal 'rootdir/var/log/apt/history.log' '
Reinstall: b:i386 (1.0)'
+fi
testsuccessequal 'Reading package lists...
Building dependency tree...