summaryrefslogtreecommitdiffstats
path: root/snaps/test_runner.py
diff options
context:
space:
mode:
authorspisarski <s.pisarski@cablelabs.com>2017-04-13 10:11:48 -0600
committerspisarski <s.pisarski@cablelabs.com>2017-04-13 10:11:48 -0600
commit2d0c7b7b64c17f25c94189efce66842f15743e0d (patch)
treeb863a589d9af51ab137ab2f6debd50f164c66583 /snaps/test_runner.py
parentf340c1e7b021fa3a67c295bcec7f09cddfb687cc (diff)
Run all test suites when none chosen.
Changed the test_runner.py to run all four suites of tests when none have been chosen. JIRA: SNAPS-10 Change-Id: I9f8f543f9aca07d01911bd8812478bf470673575 Signed-off-by: spisarski <s.pisarski@cablelabs.com>
Diffstat (limited to 'snaps/test_runner.py')
-rw-r--r--snaps/test_runner.py15
1 files changed, 11 insertions, 4 deletions
diff --git a/snaps/test_runner.py b/snaps/test_runner.py
index 00b1b25..143882b 100644
--- a/snaps/test_runner.py
+++ b/snaps/test_runner.py
@@ -94,11 +94,18 @@ def main(arguments):
suite = None
if arguments.env and arguments.ext_net:
+ unit = arguments.include_unit != ARG_NOT_SET
+ connection = arguments.include_connection != ARG_NOT_SET
+ api = arguments.include_api != ARG_NOT_SET
+ integration = arguments.include_integration != ARG_NOT_SET
+ if not unit and not connection and not api and not integration:
+ unit = True
+ connection = True
+ api = True
+ integration = True
+
suite = __create_test_suite(arguments.env, arguments.ext_net, arguments.proxy, arguments.ssh_proxy_cmd,
- arguments.include_unit != ARG_NOT_SET,
- arguments.include_connection != ARG_NOT_SET,
- arguments.include_api != ARG_NOT_SET,
- arguments.include_integration != ARG_NOT_SET,
+ unit, connection, api, integration,
flavor_metadata,
arguments.use_keystone != ARG_NOT_SET,
arguments.floating_ips != ARG_NOT_SET, log_level)