Doh
This commit is contained in:
parent
2f5789c5d6
commit
27131866c9
|
@ -90,4 +90,15 @@ fail() {
|
|||
exit 1
|
||||
}
|
||||
|
||||
expect() {
|
||||
local expected res
|
||||
expected="$1"
|
||||
shift
|
||||
set +e
|
||||
"$@"
|
||||
res="$?"
|
||||
set -e
|
||||
[[ $res -eq $expected ]]
|
||||
}
|
||||
|
||||
set -x
|
||||
|
|
Loading…
Reference in a new issue