[Rt-commit] rt branch, 4.0/parallel-test-exit-code, created. rt-4.0.5-117-g4289167

Alex Vandiver alexmv at bestpractical.com
Wed Apr 11 22:56:08 EDT 2012


The branch, 4.0/parallel-test-exit-code has been created
        at  4289167206a8f0f2b8022899051eb71e98ccc962 (commit)

- Log -----------------------------------------------------------------
commit 4289167206a8f0f2b8022899051eb71e98ccc962
Author: Alex Vandiver <alexmv at bestpractical.com>
Date:   Wed Apr 11 22:44:09 2012 -0400

    Make test-parallel's call to `perl -MApp::Prove` propagate back a useful error code

diff --git a/Makefile.in b/Makefile.in
index 2873022..7f84cb6 100755
--- a/Makefile.in
+++ b/Makefile.in
@@ -352,7 +352,7 @@ test:
 parallel-test: test-parallel
 
 test-parallel: 
-	RT_TEST_PARALLEL=1 $(PERL) "-MApp::Prove" -e 'my $$p = App::Prove->new(); $$p->process_args("-wlrj5","--state=slow,save", "t"); $$p->run()'
+	RT_TEST_PARALLEL=1 $(PERL) "-MApp::Prove" -e 'my $$p = App::Prove->new(); $$p->process_args("-wlrj5","--state=slow,save", "t"); exit( $$p->run() ? 0 : 1 )'
 
 regression-reset-db: force-dropdb
 	$(PERL) -I$(LOCAL_LIB_PATH) -I$(RT_LIB_PATH) sbin/rt-setup-database --action init --dba-password ''

-----------------------------------------------------------------------


More information about the Rt-commit mailing list