chiark
/
gitweb
/
~ian
/
userv.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
autopkgtests: wip, a test for non-root to non-root
[userv.git]
/
tests
/
lib
1
# -*- shell-script -*-
2
3
expect_output () {
4
local e_status=$1; shift
5
local e_stdout=$1; shift
6
set +e
7
local g_stdout
8
g_stdout="$( "$@" )"
9
local g_status=$?
10
set -e
11
test "$g_status" = "$e_status"
12
test "$g_stdout" = "$e_stdout"
13
}