From: Yann Dirson Date: Mon, 25 Jun 2007 21:24:51 +0000 (+0200) Subject: Fix t1200 to catch intermediate errors. X-Git-Tag: v0.13~25 X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~mdw/git/stgit/commitdiff_plain/f32c0bfa9db671b04597541749678ad46b6860af?hp=6b79a09cf777b209d875ab498e57a20643fd1bbf Fix t1200 to catch intermediate errors. All command sequences in tests should be linked with && or similar, to guard against potentially missing a regresssion. Signed-off-by: Yann Dirson --- diff --git a/t/t1200-push-modified.sh b/t/t1200-push-modified.sh index 6769667..324b3b0 100755 --- a/t/t1200-push-modified.sh +++ b/t/t1200-push-modified.sh @@ -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 ) "