From 85cf1ca08c8e079eea9150808e9d3d766671ccc0 Mon Sep 17 00:00:00 2001 From: "Joseph K. Bradley" Date: Mon, 12 Oct 2015 21:19:15 -0700 Subject: [PATCH] Output list of supported modules for python tests in error message when given bad module name. --- python/run-tests.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/python/run-tests.py b/python/run-tests.py index fd56c7ab6e0e2..152f5cc98d0fd 100755 --- a/python/run-tests.py +++ b/python/run-tests.py @@ -167,7 +167,8 @@ def main(): if module_name in python_modules: modules_to_test.append(python_modules[module_name]) else: - print("Error: unrecognized module %s" % module_name) + print("Error: unrecognized module '%s'. Supported modules: %s" % + (module_name, ", ".join(python_modules))) sys.exit(-1) LOGGER.info("Will test against the following Python executables: %s", python_execs) LOGGER.info("Will test the following Python modules: %s", [x.name for x in modules_to_test])