From: Scott Worley Date: Fri, 22 May 2020 23:55:04 +0000 (-0700) Subject: set -e in test scripts X-Git-Tag: 1.3~14 X-Git-Url: http://git.scottworley.com/pinch/commitdiff_plain/001b650db2f8a9e141634d63fa89250c1088f3c2?ds=sidebyside set -e in test scripts --- diff --git a/tests/alias.sh b/tests/alias.sh index 5bc611b..c721340 100755 --- a/tests/alias.sh +++ b/tests/alias.sh @@ -1,5 +1,7 @@ #!/bin/sh +set -e + repo_dir="`mktemp -d`" repo="$repo_dir/repo" git init "$repo" diff --git a/tests/core.sh b/tests/core.sh index bb64701..385ae2b 100755 --- a/tests/core.sh +++ b/tests/core.sh @@ -1,5 +1,7 @@ #!/bin/sh +set -e + repo_dir="`mktemp -d`" repo="$repo_dir/repo" git init "$repo" diff --git a/tests/multi-update.sh b/tests/multi-update.sh index e7e5495..24c22bc 100755 --- a/tests/multi-update.sh +++ b/tests/multi-update.sh @@ -1,5 +1,7 @@ #!/bin/sh +set -e + repo_dir="`mktemp -d`" repo="$repo_dir/repo" git init "$repo" diff --git a/tests/reject-duplicates.sh b/tests/reject-duplicates.sh index 34e12c7..d30bc40 100755 --- a/tests/reject-duplicates.sh +++ b/tests/reject-duplicates.sh @@ -1,5 +1,7 @@ #!/bin/sh +set -e + repo_dir1="`mktemp -d`" repo1="$repo_dir1/repo" git init "$repo1"