Commit a062651c55aa60f0633437e9851dd80b1d713e86

Stefan Sperling 2019-07-27T10:35:29

make test_status_obstructed show failure output

1
2
3
4
5
6
7
8
9
10
11
12
13
diff --git a/regress/cmdline/status.sh b/regress/cmdline/status.sh
index 4829d1e..fa78fd8 100755
--- a/regress/cmdline/status.sh
+++ b/regress/cmdline/status.sh
@@ -147,7 +147,7 @@ function test_status_obstructed {
 
 	cmp -s $testroot/stdout.expected $testroot/stdout
 	ret="$?"
-	if [ "$?" != "0" ]; then
+	if [ "$ret" != "0" ]; then
 		diff -u $testroot/stdout.expected $testroot/stdout
 	fi
 	test_done "$testroot" "$ret"