uitest/test_main.py | 3 +++ 1 file changed, 3 insertions(+) New commits: commit 2eb00243a1d5596ed608a476a73b2d063ab09a49 Author: Luboš Luňák <l.lu...@collabora.com> AuthorDate: Wed Feb 2 16:01:33 2022 +0100 Commit: Luboš Luňák <l.lu...@collabora.com> CommitDate: Thu Feb 3 12:53:41 2022 +0100
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.lu...@collabora.com> 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)