Commit ecdc3b498ad54d952c807b07a04c0cdb2b998f03

Stefan Sperling 2020-03-21T22:14:18

fail test_fetch_reference properly if fetch succeeds unexpectedly

1
2
3
4
5
6
7
8
9
10
11
12
13
diff --git a/regress/cmdline/fetch.sh b/regress/cmdline/fetch.sh
index ce08ae3..d62e1ba 100755
--- a/regress/cmdline/fetch.sh
+++ b/regress/cmdline/fetch.sh
@@ -676,7 +676,7 @@ function test_fetch_reference {
 	ret="$?"
 	if [ "$ret" == "0" ]; then
 		echo "got fetch command succeeded unexpectedly" >&2
-		test_done "$testroot" "$ret"
+		test_done "$testroot" "1"
 		return 1
 	fi