[Libreoffice-commits] online.git: loolwsd/test

Tor Lillqvist tml at collabora.com
Tue Apr 12 15:29:54 UTC 2016


 loolwsd/test/run_test.sh.in |    4 ++++
 1 file changed, 4 insertions(+)

New commits:
commit ec9bc15de8b2f9725080c7fed5ec7d33b8740988
Author: Tor Lillqvist <tml at collabora.com>
Date:   Tue Apr 12 18:27:19 2016 +0300

    Make the exit status of run_test.sh reflect its result
    
    Make it match the exit status of the actual ./test program.

diff --git a/loolwsd/test/run_test.sh.in b/loolwsd/test/run_test.sh.in
index 84d907b..864fd0e 100755
--- a/loolwsd/test/run_test.sh.in
+++ b/loolwsd/test/run_test.sh.in
@@ -22,12 +22,16 @@ cd $test_build
 if ./test; then
 	echo "Test run_test.sh passed."
 	echo ":test-result: PASS run_test.sh" >> $test_output
+	retval=0
 else
 	cat $test_log_output/run_test.log
         echo "============================================================="
 	echo "Test failed on unit:"
         echo "============================================================="
 	echo ":test-result: FAIL run_test.sh" >> $test_output
+	retval=1
 fi
 
 kill $!
+
+exit $retval


More information about the Libreoffice-commits mailing list