chiark / gitweb /
Fix t1200 to catch intermediate errors.
authorYann Dirson <ydirson@altern.org>
Mon, 25 Jun 2007 21:24:51 +0000 (23:24 +0200)
committerCatalin Marinas <catalin.marinas@gmail.com>
Mon, 25 Jun 2007 21:49:38 +0000 (22:49 +0100)
All command sequences in tests should be linked with && or
similar, to guard against potentially missing a regresssion.

Signed-off-by: Yann Dirson <ydirson@altern.org>
t/t1200-push-modified.sh

index 6769667fc6003945da33790b43cffb5802572949..324b3b003970150ea27d6eb6db2343bb7bf77367 100755 (executable)
@@ -21,9 +21,9 @@ test_create_repo foo
 test_expect_success \
     'Clone tree and setup changes' \
     "stg clone foo bar &&
-     (cd bar && stg new p1 -m p1
+     (cd bar && stg new p1 -m p1 &&
       printf 'a\nc\n' > file && stg add file && stg refresh &&
-      stg new p2 -m p2
+      stg new p2 -m p2 &&
       printf 'a\nb\nc\n' > file && stg refresh
      )
 "