El 23/11/2007, a las 20:20, Wincent Colaiuta escribió:
+test_expect_success \
+ 'git ls-files -q --error-unmatch should be quiet with unmatched
path.' \
+ 'git ls-files -q --error-unmatch foo bar-does-not-match 1> out
2> err ||
+ test $(cat out | wc -l) -eq 0 &&
+ test $(cat err | wc -l) -gt 0'
+
+test_expect_success \
+ 'git ls-files -q --error-unmatch should be quiet with matched
paths.' \
+ 'git ls-files -q --error-unmatch foo bar 1> out 2> err ||
+ test $(cat out | wc -l) -eq 0 &&
+ test $(cat err | wc -l) -eq 0'
+
test_done
Doh, in that last test it should be:
+ 'git ls-files -q --error-unmatch foo bar 1> out 2> err &&
Instead of:
+ 'git ls-files -q --error-unmatch foo bar 1> out 2> err ||
Cheers,
Wincent
-
To unsubscribe from this list: send the line "unsubscribe git" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html