[Libreoffice-commits] core.git: uitest/test_main.py
Jan-Marek Glogowski (via logerrit)
logerrit at kemper.freedesktop.org
Mon Jun 28 13:02:31 UTC 2021
uitest/test_main.py | 10 ++++++----
1 file changed, 6 insertions(+), 4 deletions(-)
New commits:
commit 8a636698795431915ab1f9877a29d6683d3d9f5b
Author: Jan-Marek Glogowski <glogow at fbihome.de>
AuthorDate: Sun Jun 27 21:06:38 2021 +0000
Commit: Jan-Marek Glogowski <glogow at fbihome.de>
CommitDate: Mon Jun 28 15:01:57 2021 +0200
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 at collabora.co.uk>
Reviewed-by: Jan-Marek Glogowski <glogow at fbihome.de>
Tested-by: Jenkins
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)
More information about the Libreoffice-commits
mailing list