chiark / gitweb /
Test for specific exit code
[stgit] / t / t1501-sink.sh
index 6af45fedff1536acc557f172c316c3650ccc0873..ac9e25d495ce81e3c01e1627b20608ceb7f1d5d8 100755 (executable)
@@ -17,7 +17,7 @@ test_expect_success 'Initialize StGit stack' '
 '
 
 test_expect_success 'sink without applied patches' '
-    ! stg sink
+    command_error stg sink
 '
 
 test_expect_success 'sink a specific patch without applied patches' '