diff --git a/python-Glances.changes b/python-Glances.changes index 5e37c13..104425d 100644 --- a/python-Glances.changes +++ b/python-Glances.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Wed Jan 20 16:04:11 UTC 2021 - Andreas Schwab + +- unitest-wait-for-server.patch: increase time to wait for server to start + ------------------------------------------------------------------- Sat Aug 22 22:13:50 UTC 2020 - Martin Hauke diff --git a/python-Glances.spec b/python-Glances.spec index dfab78c..0fe0ef1 100644 --- a/python-Glances.spec +++ b/python-Glances.spec @@ -1,7 +1,7 @@ # # spec file for package python-Glances # -# Copyright (c) 2020 SUSE LLC +# Copyright (c) 2021 SUSE LLC # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -29,6 +29,7 @@ Patch0: adjust-data-files.patch Patch1: remove-shebang.patch Patch2: skip-online-tests.patch Patch3: fix-tests.patch +Patch4: unitest-wait-for-server.patch BuildRequires: %{python_module bottle} BuildRequires: %{python_module future} BuildRequires: %{python_module psutil >= 5.6.3} diff --git a/unitest-wait-for-server.patch b/unitest-wait-for-server.patch new file mode 100644 index 0000000..42d165b --- /dev/null +++ b/unitest-wait-for-server.patch @@ -0,0 +1,13 @@ +Index: glances-3.1.5/unitest-xmlrpc.py +=================================================================== +--- glances-3.1.5.orig/unitest-xmlrpc.py ++++ glances-3.1.5/unitest-xmlrpc.py +@@ -59,7 +59,7 @@ class TestGlances(unittest.TestCase): + args = shlex.split(cmdline) + pid = subprocess.Popen(args) + print("Please wait...") +- time.sleep(1) ++ time.sleep(5) + + self.assertTrue(pid is not None) +