chiark
/
gitweb
/
~mdw
/
stgit
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Test for specific exit code
[stgit]
/
t
/
t1000-branch-create.sh
diff --git
a/t/t1000-branch-create.sh
b/t/t1000-branch-create.sh
index 5a097a405058360ca175ca5af11b3dca5ebed36c..3fff3ee855e8cd540e91b56923ae1a5fbbcdc435 100755
(executable)
--- a/
t/t1000-branch-create.sh
+++ b/
t/t1000-branch-create.sh
@@
-26,7
+26,7
@@
test_expect_success \
test_expect_success \
'Try to create an stgit branch with a spurious patches/ entry' '
test_expect_success \
'Try to create an stgit branch with a spurious patches/ entry' '
-
!
stg branch -c foo1
+
command_error
stg branch -c foo1
'
test_expect_success \
'
test_expect_success \
@@
-43,7
+43,7
@@
test_expect_success \
test_expect_success \
'Try to create an stgit branch with an existing git branch by that name' '
test_expect_success \
'Try to create an stgit branch with an existing git branch by that name' '
-
!
stg branch -c foo2
+
command_error
stg branch -c foo2
'
test_expect_success \
'
test_expect_success \
@@
-58,7
+58,7
@@
test_expect_success \
test_expect_success \
'Create an invalid refs/heads/ entry' '
touch .git/refs/heads/foo3 &&
test_expect_success \
'Create an invalid refs/heads/ entry' '
touch .git/refs/heads/foo3 &&
-
!
stg branch -c foo3
+
command_error
stg branch -c foo3
'
test_expect_failure \
'
test_expect_failure \
@@
-87,7
+87,7
@@
test_expect_success \
test_expect_success \
'Create branch down the stack, behind the conflict caused by the generated file' '
test_expect_success \
'Create branch down the stack, behind the conflict caused by the generated file' '
-
!
stg branch --create foo4 master^
+
command_error
stg branch --create foo4 master^
'
test_expect_success \
'
test_expect_success \