From 001b650db2f8a9e141634d63fa89250c1088f3c2 Mon Sep 17 00:00:00 2001 From: Scott Worley Date: Fri, 22 May 2020 16:55:04 -0700 Subject: [PATCH] set -e in test scripts --- tests/alias.sh | 2 ++ tests/core.sh | 2 ++ tests/multi-update.sh | 2 ++ tests/reject-duplicates.sh | 2 ++ 4 files changed, 8 insertions(+) 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" -- 2.44.1