From aa95913dd8e505123ba8974d5de27ac0ec928cce Mon Sep 17 00:00:00 2001 From: Xisco Fauli Date: Fri, 25 Feb 2022 12:05:43 +0100 Subject: uitest: remove debug option it does nothing Change-Id: I6fa67aa42b1de6199cbb49100624826f5b3b77d8 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/130524 Tested-by: Jenkins Reviewed-by: Xisco Fauli --- uitest/test_main.py | 7 ++----- uitest/uitest/config.py | 2 -- uitest/uitest/debug.py | 16 ---------------- 3 files changed, 2 insertions(+), 23 deletions(-) delete mode 100644 uitest/uitest/debug.py (limited to 'uitest') diff --git a/uitest/test_main.py b/uitest/test_main.py index acc59ae753d2..daad6dca8c1d 100644 --- a/uitest/test_main.py +++ b/uitest/test_main.py @@ -21,8 +21,8 @@ from libreoffice.connection import OfficeConnection test_name_limit_found = False def parseArgs(argv): - (optlist,args) = getopt.getopt(argv[1:], "hdr", - ["help", "debug", "soffice=", "userdir=", "dir=", "file=", "gdb"]) + (optlist,args) = getopt.getopt(argv[1:], "hr", + ["help", "soffice=", "userdir=", "dir=", "file=", "gdb"]) return (dict(optlist), args) def usage(): @@ -126,9 +126,6 @@ if __name__ == '__main__': usage() sys.exit() - if "-d" in opts or "--debug" in opts: - uitest.config.use_sleep = True - result = unittest.TextTestRunner(stream=sys.stdout, verbosity=2).run(test_suite) print("Tests run: %d" % result.testsRun) print("Tests failed: %d" % len(result.failures)) diff --git a/uitest/uitest/config.py b/uitest/uitest/config.py index d9a86baae84b..400fd51f75c2 100644 --- a/uitest/uitest/config.py +++ b/uitest/uitest/config.py @@ -5,8 +5,6 @@ # file, You can obtain one at http://mozilla.org/MPL/2.0/. # -use_sleep = False - DEFAULT_SLEEP = 0.1 MAX_WAIT = 60 diff --git a/uitest/uitest/debug.py b/uitest/uitest/debug.py deleted file mode 100644 index 234559174a35..000000000000 --- a/uitest/uitest/debug.py +++ /dev/null @@ -1,16 +0,0 @@ -# -*- tab-width: 4; indent-tabs-mode: nil; py-indent-offset: 4 -*- -# -# This Source Code Form is subject to the terms of the Mozilla Public -# License, v. 2.0. If a copy of the MPL was not distributed with this -# file, You can obtain one at http://mozilla.org/MPL/2.0/. -# - -import uitest.config - -import time - -def sleep(seconds): - if uitest.config.use_sleep: - time.sleep(seconds) - -# vim: set shiftwidth=4 softtabstop=4 expandtab: -- cgit