summaryrefslogtreecommitdiff
path: root/uitest
diff options
context:
space:
mode:
authorJan-Marek Glogowski <glogow@fbihome.de>2021-06-27 21:06:38 +0000
committerJan-Marek Glogowski <glogow@fbihome.de>2021-06-28 15:01:57 +0200
commit8a636698795431915ab1f9877a29d6683d3d9f5b (patch)
tree1f917e876a9f04748ddae8686b0c1578be33bf6d /uitest
parent3c6b33a3cf982c78b64a1a72bf9b2e7bd07495c3 (diff)
uitest: log the active UITEST_TEST_NAME
From the original commit bff02d54960b55e16d5c1220719bb86dc1fdd205 ("uitests - error if UITEST_TEST_NAME not set to anything useful"), it doesn't look like logging the test_name_limit_found is needed. Change-Id: Ibe1e6a5d63a968b06c4c8e8b4979d5b8caf8f54c Reviewed-on: https://gerrit.libreoffice.org/c/core/+/118016 Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk> Reviewed-by: Jan-Marek Glogowski <glogow@fbihome.de> Tested-by: Jenkins
Diffstat (limited to 'uitest')
-rw-r--r--uitest/test_main.py10
1 files changed, 6 insertions, 4 deletions
diff --git a/uitest/test_main.py b/uitest/test_main.py
index 1904ecbb3476..157d1f424e15 100644
--- a/uitest/test_main.py
+++ b/uitest/test_main.py
@@ -110,10 +110,12 @@ if __name__ == '__main__':
elif "--dir" in opts:
test_suite = get_test_suite_for_dir(opts)
test_name_limit = os.environ.get('UITEST_TEST_NAME', '')
- print(test_name_limit_found)
- if len(test_name_limit) > 0 and not test_name_limit_found:
- print("UITEST_TEST_NAME '%s' does not match any test" % test_name_limit)
- sys.exit(1)
+ if len(test_name_limit) > 0:
+ if not test_name_limit_found:
+ print("UITEST_TEST_NAME '%s' does not match any test" % test_name_limit)
+ sys.exit(1)
+ else:
+ print("UITEST_TEST_NAME '%s' active" % test_name_limit)
elif "--file" in opts:
test_suite = unittest.TestSuite()
add_tests_for_file(opts['--file'], test_suite)