From 2eb00243a1d5596ed608a476a73b2d063ab09a49 Mon Sep 17 00:00:00 2001 From: Luboš Luňák Date: Wed, 2 Feb 2022 16:01:33 +0100 Subject: ignore ~ backup files when searching for .py uitest files MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Change-Id: I9b476336349b67d3d9bb149d4ad4824740797eb0 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/129370 Tested-by: Jenkins Reviewed-by: Luboš Luňák --- uitest/test_main.py | 3 +++ 1 file changed, 3 insertions(+) (limited to 'uitest') 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) -- cgit