uitest: don't complain about the silly VIM swap files
Very annoying to have the test not run if you look at its code. Change-Id: Ied63432e0a0460ed66bad4cc53f4769810f058e8 Reviewed-on: https://gerrit.libreoffice.org/75515 Tested-by: Jenkins Reviewed-by: Michael Stahl <Michael.Stahl@cib.de>
This commit is contained in:
@@ -45,6 +45,9 @@ def find_test_files(dir_path):
|
||||
if not os.path.isfile(file_path):
|
||||
continue
|
||||
|
||||
if os.path.splitext(file_path)[1] == ".swp":
|
||||
continue # ignore VIM swap 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)
|
||||
|
Reference in New Issue
Block a user