From e62a2ce4c41d8df507e4e786d991d42f4a214b8d Mon Sep 17 00:00:00 2001 From: Edward Hervey Date: Wed, 19 Mar 2014 17:04:14 +0100 Subject: [PATCH] launcher: No need to start a web server when listing tests It's not needed and makes listing faster. Also sort the list of tests --- validate/tools/launcher/main.py | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/validate/tools/launcher/main.py b/validate/tools/launcher/main.py index 21fa3a9..5ea2e87 100644 --- a/validate/tools/launcher/main.py +++ b/validate/tools/launcher/main.py @@ -176,17 +176,19 @@ def main(): ScenarioManager().config = options tests_launcher.list_tests() + if options.list_tests: + l = tests_launcher.tests + l.sort() + for test in l: + printc(test) + return 0 + httpsrv = HTTPServer(options) if tests_launcher.needs_http_server(): httpsrv.start() e = None try: - if options.list_tests: - for test in tests_launcher.tests: - printc(test) - return 0 - tests_launcher.run_tests() tests_launcher.final_report() except Exception as e: -- 2.7.4