Kaydet (Commit) b0f22a54 authored tarafından Miklos Vajna's avatar Miklos Vajna

uitest: fail early in case a test file would be ignored

So the mistake I did in commit 457acbfa
(UITest_writer_tests: split this into 4 parts, 2018-07-03) does not
happen again.

Change-Id: Ia28ed1fe9909d9c46ebe95d3a1926b0dced46140
Reviewed-on: https://gerrit.libreoffice.org/66180Reviewed-by: 's avatarMarkus Mohrhard <markus.mohrhard@googlemail.com>
Tested-by: Jenkins
Reviewed-by: 's avatarMiklos Vajna <vmiklos@collabora.com>
üst 61778fd2
......@@ -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
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment