From b6331ee97f7e13b8440bdb4188d168d6c2a946e9 Mon Sep 17 00:00:00 2001 From: Przemyslaw Kaminski Date: Mon, 24 Nov 2014 16:12:25 +0100 Subject: [PATCH] run_tests.sh option fixes * Options sorted alphabetically to find them more easily. * Duplicated -l option changed to -k for tasklib tests. Change-Id: I75056a593ee46f302c9916cc1201131965c1f657 --- run_tests.sh | 29 +++++++++++++++-------------- 1 file changed, 15 insertions(+), 14 deletions(-) diff --git a/run_tests.sh b/run_tests.sh index b1ceb578ee..45cbeee5e3 100755 --- a/run_tests.sh +++ b/run_tests.sh @@ -22,23 +22,24 @@ function usage { echo "" echo " -a, --agent Run FUEL_AGENT unit tests" echo " -A, --no-agent Don't run FUEL_AGENT unit tests" - echo " -n, --nailgun Run NAILGUN both unit and integration tests" - echo " -l, --tasklib Run tasklib unit and functional tests" - echo " -N, --no-nailgun Don't run NAILGUN tests" - echo " -w, --webui Run WEB-UI tests" - echo " -W, --no-webui Don't run WEB-UI tests" echo " -c, --cli Run FUELCLIENT tests" echo " -C, --no-cli Don't run FUELCLIENT tests" - echo " -u, --upgrade Run tests for UPGRADE system" - echo " -U, --no-upgrade Don't run tests for UPGRADE system" - echo " -s, --shotgun Run SHOTGUN tests" - echo " -S, --no-shotgun Don't run SHOTGUN tests" - echo " -p, --flake8 Run FLAKE8 and HACKING compliance check" - echo " -P, --no-flake8 Don't run static code checks" + echo " -h, --help Print this usage message" + echo " -k, --tasklib Run tasklib unit and functional tests" + echo " -K, --no-tasklib Don't run tasklib unit and functional tests" echo " -l, --lint-ui Run UI linting tasks" echo " -L, --no-lint-ui Don't run UI linting tasks" + echo " -n, --nailgun Run NAILGUN both unit and integration tests" + echo " -N, --no-nailgun Don't run NAILGUN tests" + echo " -p, --flake8 Run FLAKE8 and HACKING compliance check" + echo " -P, --no-flake8 Don't run static code checks" + echo " -s, --shotgun Run SHOTGUN tests" + echo " -S, --no-shotgun Don't run SHOTGUN tests" echo " -t, --tests Run a given test files" - echo " -h, --help Print this usage message" + echo " -u, --upgrade Run tests for UPGRADE system" + echo " -U, --no-upgrade Don't run tests for UPGRADE system" + echo " -w, --webui Run WEB-UI tests" + echo " -W, --no-webui Don't run WEB-UI tests" echo "" echo "Note: with no options specified, the script will try to run all available" echo " tests with all available checks." @@ -54,8 +55,8 @@ function process_options { -A|--no-agent) no_agent_tests=1;; -n|--nailgun) nailgun_tests=1;; -N|--no-nailgun) no_nailgun_tests=1;; - -l|--tasklib) tasklib_tests=1;; - -L|--no-tasklib) no_tasklib_tests=1;; + -k|--tasklib) tasklib_tests=1;; + -K|--no-tasklib) no_tasklib_tests=1;; -w|--webui) webui_tests=1;; -W|--no-webui) no_webui_tests=1;; -c|--cli) cli_tests=1;;