chiark
/
gitweb
/
~mdw
/
stgit
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
d756053
)
Test for exit code with command_error()
author
Karl Hasselström
<kha@treskal.com>
Thu, 24 Jul 2008 20:46:56 +0000
(22:46 +0200)
committer
Karl Hasselström
<kha@treskal.com>
Thu, 24 Jul 2008 20:46:56 +0000
(22:46 +0200)
The helper function was made for occasions such as this, so use it.
Signed-off-by: Karl Hasselström <kha@treskal.com>
t/t1300-uncommit.sh
patch
|
blob
|
blame
|
history
diff --git
a/t/t1300-uncommit.sh
b/t/t1300-uncommit.sh
index a906d135d9c1ee077c1f7042390b3297044e4196..a657ead7ed06b7264045a4bd1cefac7570bdbde9 100755
(executable)
--- a/
t/t1300-uncommit.sh
+++ b/
t/t1300-uncommit.sh
@@
-79,7
+79,7
@@
test_expect_success \
'
test_expect_success 'Uncommit a commit with not precisely one parent' '
'
test_expect_success 'Uncommit a commit with not precisely one parent' '
-
stg uncommit -n 5 ; [ $? = 2 ]
&&
+
command_error stg uncommit -n 5
&&
[ "$(echo $(stg series))" = "" ]
'
[ "$(echo $(stg series))" = "" ]
'