[PATCH 1/5] Allow specifying which of the GUI tests you want to run.

Chris Lumens clumens at redhat.com
Wed Nov 12 18:32:42 UTC 2014


When there was only one, it was easy.  However for developing new tests,
it's helpful to just run the new one by itself.  This allows doing so by
setting the GUI_TESTS environment variable.

While I'm at it, add a couple messages to explain why the whole test suite
did not get run.
---
 tests/gui/run_gui_tests.sh | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

diff --git a/tests/gui/run_gui_tests.sh b/tests/gui/run_gui_tests.sh
index b170f4b..b77cc3d 100755
--- a/tests/gui/run_gui_tests.sh
+++ b/tests/gui/run_gui_tests.sh
@@ -26,20 +26,22 @@ function doit() {
           --tc=liveImage:$1"
 
     if [ -z "$2" ]; then
-        nosetests ${ARGS} outside
+        nosetests ${ARGS} ${GUI_TESTS:-outside}
     else
-        nosetests ${ARGS} "${2}" outside
+        nosetests ${ARGS} "${2}" ${GUI_TESTS:-outside}
     fi
 }
 
 # We require the test_config plugin for nose, which is not currently packaged
 # but is installable via pip.
 if [ -z "$(nosetests -p | grep test_config)" ]; then
+    echo "test_config plugin is not available; exiting."
     exit 99
 fi
 
 # Have to be root to run this test, as it requires creating disk iamges.
 if [ ${EUID} != 0 ]; then
+   echo "You must be root to run the GUI tests; skipping."
    exit 77
 fi
 
-- 
1.9.3



More information about the anaconda-patches mailing list