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>
test_expect_success \
'Clone tree and setup changes' \
"stg clone foo bar &&
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 &&
printf 'a\nc\n' > file && stg add file && stg refresh &&
printf 'a\nb\nc\n' > file && stg refresh
)
"
printf 'a\nb\nc\n' > file && stg refresh
)
"