This commit is contained in:
Eelco Dolstra 2017-11-15 12:23:31 +01:00
parent 2f5789c5d6
commit 27131866c9
No known key found for this signature in database
GPG key ID: 8170B4726D7198DE

View file

@ -90,4 +90,15 @@ fail() {
exit 1 exit 1
} }
expect() {
local expected res
expected="$1"
shift
set +e
"$@"
res="$?"
set -e
[[ $res -eq $expected ]]
}
set -x set -x