[PATCH] test-lib: TAP compliance for skipping tests on request

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

 



Make the output TAP compliant for tests skipped on request (GI_SKIP_TESTS).

Signed-off-by: Michael J Gruber <git@xxxxxxxxxxxxxxxxxxxx>
---
We may want to better spell out the reasons, but I think
it's good enough like this for *explicitly* skipped tests.

 t/test-lib.sh |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/t/test-lib.sh b/t/test-lib.sh
index 8e3de53..2076271 100644
--- a/t/test-lib.sh
+++ b/t/test-lib.sh
@@ -395,7 +395,7 @@ test_skip () {
 	case "$to_skip" in
 	t)
 		say_color skip >&3 "skipping test: $@"
-		say_color skip "ok $test_count: # skip $1"
+		say_color skip "ok $test_count # SKIP $1"
 		: true
 		;;
 	*)
@@ -838,7 +838,7 @@ done
 case "$to_skip" in
 t)
 	say_color skip >&3 "skipping test $this_test altogether"
-	say_color skip "skip all tests in $this_test"
+	skip_all="skip all tests in $this_test"
 	test_done
 esac
 
-- 
1.7.2.rc1.212.g850a

--
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]