From 8181acd83be536cc3185eb2f270370702862ce5d Mon Sep 17 00:00:00 2001 From: Benny Halevy Date: Thu, 11 Apr 2019 12:20:41 +0300 Subject: [PATCH] test.py: fail if given test name not found Signed-off-by: Benny Halevy Message-Id: <20190411092041.24712-1-bhalevy@scylladb.com> --- test.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/test.py b/test.py index b6732e8bf5..7ff5c8bec4 100755 --- a/test.py +++ b/test.py @@ -246,6 +246,9 @@ if __name__ == "__main__": if args.name: test_to_run = [t for t in test_to_run if args.name in t[0]] + if not test_to_run: + print("Test {} not found".format(args.name)) + sys.exit(1) failed_tests = []