]> git.saurik.com Git - apt.git/blobdiff - test/integration/test-bug-611729-mark-as-manual
test/integration/test-srcrecord: Make executable
[apt.git] / test / integration / test-bug-611729-mark-as-manual
index 31856b2c16d7f03c8bddc430c68c92378403689b..97ef846e3e1f530555e0470d50dbfc1d71f5b8b4 100755 (executable)
@@ -1,8 +1,8 @@
 #!/bin/sh
 set -e
 
-TESTDIR=$(readlink -f $(dirname $0))
-. $TESTDIR/framework
+TESTDIR="$(readlink -f "$(dirname "$0")")"
+. "$TESTDIR/framework"
 setupenvironment
 configarchitecture "i386"
 
@@ -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...