Re: [PATCH 1/7] Add -q/--quiet switch to git-ls-files

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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

[Index of Archives]     [Linux Kernel Development]     [Gcc Help]     [IETF Annouce]     [DCCP]     [Netdev]     [Networking]     [Security]     [V4L]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux SCSI]     [Fedora Users]

  Powered by Linux