diff options
author | Luboš Luňák <l.lunak@collabora.com> | 2022-02-02 16:01:33 +0100 |
---|---|---|
committer | Luboš Luňák <l.lunak@collabora.com> | 2022-02-03 12:53:41 +0100 |
commit | 2eb00243a1d5596ed608a476a73b2d063ab09a49 (patch) | |
tree | ac01d47beddaf0cd0fda9cb92fade83b012660e5 /uitest | |
parent | 4f0a5cc84862e83649e933dbde272629c55c1210 (diff) |
ignore ~ backup files when searching for .py uitest files
Change-Id: I9b476336349b67d3d9bb149d4ad4824740797eb0
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/129370
Tested-by: Jenkins
Reviewed-by: Luboš Luňák <l.lunak@collabora.com>
Diffstat (limited to 'uitest')
-rw-r--r-- | uitest/test_main.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/uitest/test_main.py b/uitest/test_main.py index 157d1f424e15..acc59ae753d2 100644 --- a/uitest/test_main.py +++ b/uitest/test_main.py @@ -47,6 +47,9 @@ def find_test_files(dir_path): if os.path.splitext(file_path)[1] == ".swp": continue # ignore VIM swap files + if file_path[-1:] == "~": + continue # ignore backup files + # fail on any non .py files if not os.path.splitext(file_path)[1] == ".py": raise Exception("file with an extension which is not .py: " + file_path) |