make test_status_obstructed show failure output
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"