From fdd75e135a8cb43f946af99120566f744df2a8e0 Mon Sep 17 00:00:00 2001 From: Jelmer Vernooij Date: Tue, 12 Feb 2008 21:59:23 +0100 Subject: Correctly increment counters in Subunit test runner. (This used to be commit c474a2bb83a3e28a0b83f3b8ca1b646742dfca3d) --- source4/scripting/bin/subunitrun | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'source4/scripting/bin') diff --git a/source4/scripting/bin/subunitrun b/source4/scripting/bin/subunitrun index 7142abed85..8dfe2def9c 100755 --- a/source4/scripting/bin/subunitrun +++ b/source4/scripting/bin/subunitrun @@ -21,6 +21,4 @@ from subunit import SubunitTestRunner import sys from unittest import TestProgram -program = TestProgram(module=None, argv=sys.argv, - testRunner=SubunitTestRunner()) -program.runTests() +TestProgram(module=None, argv=sys.argv, testRunner=SubunitTestRunner()) -- cgit From 04aef38453ff977bf260546545e968fce3ddd599 Mon Sep 17 00:00:00 2001 From: Jelmer Vernooij Date: Tue, 12 Feb 2008 22:10:25 +0100 Subject: Fix subunit runner exit codes. (This used to be commit 7911308dbc1233838e44c533302f77b03ea41148) --- source4/scripting/bin/subunitrun | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'source4/scripting/bin') diff --git a/source4/scripting/bin/subunitrun b/source4/scripting/bin/subunitrun index 8dfe2def9c..11ac426589 100755 --- a/source4/scripting/bin/subunitrun +++ b/source4/scripting/bin/subunitrun @@ -21,4 +21,5 @@ from subunit import SubunitTestRunner import sys from unittest import TestProgram -TestProgram(module=None, argv=sys.argv, testRunner=SubunitTestRunner()) +runner = SubunitTestRunner() +TestProgram(module=None, argv=sys.argv, testRunner=runner) -- cgit