Thread (16 messages) flat view 16 messages, 3 authors, 2016-06-15

Re: [PATCH en/cascade-tests] tests: add missing &&

From: Junio C Hamano <hidden>
Date: 2016-06-15 22:49:57

Possibly related (same subject, not in this thread)

Jonathan Nieder [off-list ref] writes:
quoted hunk
@@ -27,7 +27,7 @@ test_expect_success 'see what we expect' '
 	>junk/"$auml" &&
 	case "$(cd junk && echo *)" in
 	"$aumlcdiar")
-		test_unicode=test_expect_failure
+		test_unicode=test_expect_failure &&
 		unibad=t
 		;;
 	*)	;;
This seems to prepare for a case where a simple variable assignment fails
for whategver reason, which is not too bad, but ...
quoted hunk
@@ -36,7 +36,7 @@ test_expect_success 'see what we expect' '
 	{
 		ln -s x y 2> /dev/null &&
 		test -h y 2> /dev/null ||
-		no_symlinks=1
+		no_symlinks=1 &&
 		rm -f y
... if you allowed such a simple assignment failure, no_symlinks=1 may
fail, and we end up not running "rm -f y" to clean up, which might be
somewhat undesirable ;-)

Looked up to but not including t5302 and all looked Ok.
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help