summaryrefslogtreecommitdiff
path: root/uitest
diff options
context:
space:
mode:
authorXisco Fauli <xiscofauli@libreoffice.org>2022-02-25 12:05:43 +0100
committerXisco Fauli <xiscofauli@libreoffice.org>2022-02-25 13:39:27 +0100
commitaa95913dd8e505123ba8974d5de27ac0ec928cce (patch)
treeb7b43e37fc2101c42d515346cdc15bdd36a9468c /uitest
parent48119cf42acef33dedcbba92d3bfb8cf8c9938d1 (diff)
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 <xiscofauli@libreoffice.org>
Diffstat (limited to 'uitest')
-rw-r--r--uitest/test_main.py7
-rw-r--r--uitest/uitest/config.py2
-rw-r--r--uitest/uitest/debug.py16
3 files changed, 2 insertions, 23 deletions
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: