[java-sig-commits] [javapackages] Fuzzed test are not run by default; use run_tests.sh --all to run them

Michael Šimáček msimacek at fedoraproject.org
Mon Sep 30 13:26:21 UTC 2013


commit e28d9bd98f636721bc46279d28cd14d8d8baadfc
Author: Michael Simacek <msimacek at redhat.com>
Date:   Mon Sep 30 10:33:52 2013 +0200

    Fuzzed test are not run by default; use run_tests.sh --all to run them

 check             |    2 +-
 test/run_tests.sh |    8 ++++++--
 2 files changed, 7 insertions(+), 3 deletions(-)
---
diff --git a/check b/check
index fa9c57d..024b82f 100755
--- a/check
+++ b/check
@@ -39,7 +39,7 @@ fi
 . ./config.status
 
 (cd ./python && python setup.py test; r1=${?})
-(cd ./test && ./run_tests.sh; r2=${?})
+(cd ./test && ./run_tests.sh --all; r2=${?})
 
 if [ ${r1} -lt ${r2} ]; then
     r1=${r2}
diff --git a/test/run_tests.sh b/test/run_tests.sh
index c7a4f0e..1fc8c58 100755
--- a/test/run_tests.sh
+++ b/test/run_tests.sh
@@ -1,2 +1,6 @@
-#!/usr/bin/sh
-python -m unittest discover -p '*_test.py'
+#!/usr/bin/bash
+if [ "x${1}" = "x--all" ]; then
+    python -m unittest discover -p '*_test*.py'
+else
+    python -m unittest discover -p '*_test.py'
+fi


More information about the java-sig-commits mailing list