Hi,

The make-test script now exits with code 1 in case that
any of the test cases that were run failed.

Can we push this without a ticket under one-liner rule?

Tomas
>From f4c6cad856be076d1c367edf2e9ced1b3c15b15a Mon Sep 17 00:00:00 2001
From: Tomas Babej <tba...@redhat.com>
Date: Sat, 23 Feb 2013 00:41:58 +0100
Subject: [PATCH] Make sure appropriate exit status is returned in make-test

The make-test script now returns 1 in case that any of the test
cases that were run failed.
---
 make-test | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/make-test b/make-test
index 02a17db9c039869dc11f48a3880841f1ad8a9cde..b39e4dbde410d64edc69791d617349cbb6e9c903 100755
--- a/make-test
+++ b/make-test
@@ -52,5 +52,7 @@ for pver in ran:
 print ''
 if fail:
     print '** FAIL **'
+    sys.exit(1)
 else:
     print '** pass **'
+    sys.exit(0)
-- 
1.8.1


_______________________________________________
Freeipa-devel mailing list
Freeipa-devel@redhat.com
https://www.redhat.com/mailman/listinfo/freeipa-devel

Reply via email to