git-p4: missing she-bang line in t9804 confuses prove
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Mon, 27 Feb 2012 17:40:14 +0000 (18:40 +0100)
committerJunio C Hamano <gitster@pobox.com>
Mon, 27 Feb 2012 20:24:09 +0000 (12:24 -0800)
Without the magic line, prove shows lots and lots of errors:
% prove ./t9804-git-p4-label.sh
./t9804-git-p4-label.sh .. syntax error at ./t9804-git-p4-label.sh line 3, near ". ."
...

When #!/bin/sh is added, tests are skipped (I have no p4d).

Signed-off-by: Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
t/t9804-git-p4-label.sh
index 80d01ea438f26c8d51e3cde548592c35db95f711..a9e04efb889c07037b6800171f9675c8afb68e18 100755 (executable)
@@ -1,3 +1,5 @@
+#!/bin/sh
+
 test_description='git-p4 p4 label tests'
 
 . ./lib-git-p4.sh