[Libreoffice-commits] core.git: uitest/test_main.py
Libreoffice Gerrit user
logerrit at kemper.freedesktop.org
Mon Jan 14 07:43:00 UTC 2019
uitest/test_main.py | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
New commits:
commit b0f22a54c4c6f45f173b91d051b34d176cbab629
Author: Miklos Vajna <vmiklos at collabora.com>
AuthorDate: Fri Jan 11 14:53:15 2019 +0100
Commit: Miklos Vajna <vmiklos at collabora.com>
CommitDate: Mon Jan 14 08:42:36 2019 +0100
uitest: fail early in case a test file would be ignored
So the mistake I did in commit 457acbfa304ac8bda0755c9ca8f1e1e22e490ac8
(UITest_writer_tests: split this into 4 parts, 2018-07-03) does not
happen again.
Change-Id: Ia28ed1fe9909d9c46ebe95d3a1926b0dced46140
Reviewed-on: https://gerrit.libreoffice.org/66180
Reviewed-by: Markus Mohrhard <markus.mohrhard at googlemail.com>
Tested-by: Jenkins
Reviewed-by: Miklos Vajna <vmiklos at collabora.com>
diff --git a/uitest/test_main.py b/uitest/test_main.py
index 934b27790961..bbfb8ad57072 100644
--- a/uitest/test_main.py
+++ b/uitest/test_main.py
@@ -45,9 +45,9 @@ def find_test_files(dir_path):
if not os.path.isfile(file_path):
continue
- # ignore any non .py files
+ # fail on any non .py files
if not os.path.splitext(file_path)[1] == ".py":
- continue
+ raise Exception("file with an extension which is not .py: " + file_path)
# ignore the __init__.py file
# it is obviously not a test file
More information about the Libreoffice-commits
mailing list