chiark / gitweb /
autopkgtests: wip, a test for non-root to non-root
[userv.git] / tests / lib
index ae2aa505512a5da3e9f0188bb91ce53b178211b7..bf56c46399c99b15f1ed6ce8622bcc463def3f9a 100644 (file)
--- a/tests/lib
+++ b/tests/lib
@@ -4,7 +4,8 @@ expect_output () {
     local e_status=$1; shift
     local e_stdout=$1; shift
     set +e
-    local g_stdout="$( "$@" )"
+    local g_stdout
+    g_stdout="$( "$@" )"
     local g_status=$?
     set -e
     test "$g_status" = "$e_status"