git p4: fix unit tests
[gitweb.git] / t / t3020-ls-files-error-unmatch.sh
index f4da869932e40429f94d19a9cf2e18dc1e838f0a..ca01053bcc88806aae9abde5892b8c163b3936d0 100755 (executable)
@@ -11,17 +11,18 @@ line.
 '
 . ./test-lib.sh
 
-touch foo bar
-git update-index --add foo bar
-git-commit -m "add foo bar"
+test_expect_success 'setup' '
+       touch foo bar &&
+       git update-index --add foo bar &&
+       git commit -m "add foo bar"
+'
 
 test_expect_success \
     'git ls-files --error-unmatch should fail with unmatched path.' \
-    '! git ls-files --error-unmatch foo bar-does-not-match'
+    'test_must_fail git ls-files --error-unmatch foo bar-does-not-match'
 
 test_expect_success \
     'git ls-files --error-unmatch should succeed eith matched paths.' \
     'git ls-files --error-unmatch foo bar'
 
 test_done
-1