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
/
t1600-delete-one.sh
diff --git
a/t/t1600-delete-one.sh
b/t/t1600-delete-one.sh
index c3451d827eaeab07a3c62f21e2210b14255c7714..b526a552c69977898e3241066814c0493231bae7 100755
(executable)
--- a/
t/t1600-delete-one.sh
+++ b/
t/t1600-delete-one.sh
@@
-20,7
+20,7
@@
test_expect_success \
'Try to delete a non-existing patch' \
'
[ $(stg applied | wc -l) -eq 1 ] &&
'Try to delete a non-existing patch' \
'
[ $(stg applied | wc -l) -eq 1 ] &&
-
!
stg delete bar &&
+
command_error
stg delete bar &&
[ $(stg applied | wc -l) -eq 1 ]
'
[ $(stg applied | wc -l) -eq 1 ]
'
@@
-29,7
+29,7
@@
test_expect_success \
'
echo dirty >> foo.txt &&
[ $(stg applied | wc -l) -eq 1 ] &&
'
echo dirty >> foo.txt &&
[ $(stg applied | wc -l) -eq 1 ] &&
-
!
stg delete foo &&
+
command_error
stg delete foo &&
[ $(stg applied | wc -l) -eq 1 ] &&
git reset --hard
'
[ $(stg applied | wc -l) -eq 1 ] &&
git reset --hard
'