chiark / gitweb /
Test for specific exit code
[stgit] / t / t1301-repair.sh
index b555b93ac11c38393d68de68a3bea142394bde43..33f8f6d0986a43291efec66677d3e160011a1121 100755 (executable)
@@ -5,7 +5,7 @@ test_description='Test the repair command.'
 
 test_expect_success \
     'Repair in a non-initialized repository' \
-    '! stg repair'
+    'command_error stg repair'
 
 test_expect_success \
     'Initialize the StGIT repository' \