Commit Diff


commit - fe7842f5ed4cf6497d003ac69dbbf2966cd96611
commit + 172011266998fb86e8c844c279e246f54b6981e1
blob - 6ff541cab011dd1af18dea1cf0583fd6cb05efa3
blob + 793da6f9f59ddd31762b67fadea5b2769de756cf
--- regress/cmdline/common.sh
+++ regress/cmdline/common.sh
@@ -142,8 +142,8 @@ function test_done
 		echo "ok"
 	elif echo "$result" | grep -q "^xfail"; then
 		# expected test failure; test reproduces an unfixed bug
-		test_cleanup "$testroot" || return 1
 		echo "$result"
+		test_cleanup "$testroot" || return 1
 	else
 		echo "test failed; leaving test data in $testroot"
 	fi