[gnome-music] tests: Correctly verify exit code when running several tests



commit 778df5e0cdc714f7d788c8ec02049cb05f41bea9
Author: Vadim Rutkovsky <vrutkovs redhat com>
Date:   Tue May 7 15:28:48 2013 +0200

    tests: Correctly verify exit code when running several tests

 tests/Makefile.am |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)
---
diff --git a/tests/Makefile.am b/tests/Makefile.am
index ee72da3..226388c 100644
--- a/tests/Makefile.am
+++ b/tests/Makefile.am
@@ -9,6 +9,8 @@ check-TESTS:
         for test in $(TESTS) ; do \
           echo "Running suite $$test" ; \
           $(RUN_TESTS_ENV_VARS) gjs $$test ; \
+          status=$$? ; \
+          if [[ $$status -ne 0 ]] ; then exit 1 ; fi ; \
         done
 
 -include $(top_srcdir)/git.mk


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