Have only a single command in each test_expect_failure
[stgit/ydirson.git] / t / t1001-branch-rename.sh
blob28da15ceffe932efe3c87c2aae5c27adc41f5834
1 #!/bin/sh
3 # Copyright (c) 2006 Yann Dirson
6 test_description='Branch renames.
8 Exercises branch renaming commands.
11 . ./test-lib.sh
13 test_expect_success \
14 'Create an stgit branch from scratch' \
15 'stg init &&
16 stg branch -c foo &&
17 stg new p1 -m "p1"
20 test_expect_failure \
21 'Rename the current stgit branch' \
22 'stg branch -r foo bar
25 test_expect_success \
26 'Rename an stgit branch' \
27 'stg branch -c buz &&
28 stg branch -r foo bar &&
29 test -z `find .git -name foo | tee /dev/stderr`
32 test_done