[Libreoffice-commits] core.git: uitest/test_main.py

Michael Stahl (via logerrit) logerrit at kemper.freedesktop.org
Mon Jul 15 08:51:12 UTC 2019


 uitest/test_main.py |    3 +++
 1 file changed, 3 insertions(+)

New commits:
commit 49b27f0662ca6786addd443ea23e9650b6f5521a
Author:     Michael Stahl <Michael.Stahl at cib.de>
AuthorDate: Fri Jul 12 19:31:29 2019 +0200
Commit:     Michael Stahl <Michael.Stahl at cib.de>
CommitDate: Mon Jul 15 10:50:14 2019 +0200

    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 at cib.de>

diff --git a/uitest/test_main.py b/uitest/test_main.py
index bbfb8ad57072..851a44f8e929 100644
--- a/uitest/test_main.py
+++ b/uitest/test_main.py
@@ -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)


More information about the Libreoffice-commits mailing list