Passes with
autopkgtest -- qemu /path/to/buster.image
Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
Tests: t-basic
Depends: @, bash
Tests-Directory: tests
-Restrictions: isolation-container, allow-stderr
+Restrictions: isolation-container, allow-stderr, needs-root
--- /dev/null
+# -*- shell-script -*-
+
+expect_output () {
+ local e_status=$1; shift
+ local e_stdout=$1; shift
+ set +e
+ local g_stdout="$( "$@" )"
+ local g_status=$?
+ set -e
+ test "$g_status" = "$e_status"
+ test "$g_stdout" = "$e_stdout"
+}
#!/bin/bash
set -ex
+
+. tests/lib
+
+expect_output 0 'games' \
+userv --override 'execute whoami' games spong