chiark / gitweb /
Test for exit code with command_error()
[stgit] / t / t1300-uncommit.sh
index a906d135d9c1ee077c1f7042390b3297044e4196..a657ead7ed06b7264045a4bd1cefac7570bdbde9 100755 (executable)
@@ -79,7 +79,7 @@ test_expect_success \
 '
 
 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))" = "" ]
 '