summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMiklos Vajna <vmiklos@collabora.com>2020-02-18 21:06:49 +0100
committerMiklos Vajna <vmiklos@collabora.com>2020-02-19 09:03:59 +0100
commitfcc30680ee7ac7d2bf9ec4ccdae7256b61ad7102 (patch)
tree3205f7e59caee0715520810c5d4e476fef5cc3f0
parentaec3cce9e4aa12e6cfe229e11d6548f0c3a7cbb5 (diff)
uitest: make sure UITEST_TEST_NAME matches exactly one test function
So that something like: make -sr UITest_cui_dialogs UITEST_TEST_NAME="chardlg.Test.testSvxCharEffectsPageWriterAutomatic" Only executes testSvxCharEffectsPageWriterAutomatic, not testSvxCharEffectsPageWriter and testSvxCharEffectsPage as well. Change-Id: I0ed334259634e3b9b0db45d9f8462eb4accc689e Reviewed-on: https://gerrit.libreoffice.org/c/core/+/88987 Tested-by: Jenkins Reviewed-by: Miklos Vajna <vmiklos@collabora.com>
-rw-r--r--uitest/test_main.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/uitest/test_main.py b/uitest/test_main.py
index ab173c32476c..e1737947f536 100644
--- a/uitest/test_main.py
+++ b/uitest/test_main.py
@@ -84,7 +84,7 @@ def add_tests_for_file(test_file, test_suite):
for test_name in test_names:
full_name = ".".join([module_name, c.__name__, test_name])
if len(test_name_limit) > 0:
- if not test_name_limit.startswith(full_name):
+ if test_name_limit != full_name:
continue
test_name_limit_found = True