Skip to content

Commit

Permalink
Doh
Browse files Browse the repository at this point in the history
  • Loading branch information
edolstra committed Nov 15, 2017
1 parent 2f5789c commit 2713186
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions tests/common.sh.in
Expand Up @@ -90,4 +90,15 @@ fail() {
exit 1
}

expect() {
local expected res
expected="$1"
shift
set +e
"$@"
res="$?"
set -e
[[ $res -eq $expected ]]
}

set -x

0 comments on commit 2713186

Please sign in to comment.