Hello community, here is the log from the commit of package python-zdaemon for openSUSE:Factory checked in at 2019-09-13 15:03:20 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/python-zdaemon (Old) and /work/SRC/openSUSE:Factory/.python-zdaemon.new.7948 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "python-zdaemon" Fri Sep 13 15:03:20 2019 rev:21 rq:730634 version:4.3 Changes: -------- --- /work/SRC/openSUSE:Factory/python-zdaemon/python-zdaemon.changes 2019-05-14 13:30:31.527364961 +0200 +++ /work/SRC/openSUSE:Factory/.python-zdaemon.new.7948/python-zdaemon.changes 2019-09-13 15:04:54.849261892 +0200 @@ -1,0 +2,6 @@ +Thu Sep 12 17:12:56 UTC 2019 - Tomáš Chvátal <[email protected]> + +- Patch out flaky tests that seldomly fails in obs: + * obs-timeout.patch + +------------------------------------------------------------------- New: ---- obs-timeout.patch ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ python-zdaemon.spec ++++++ --- /var/tmp/diff_new_pack.b2LXJQ/_old 2019-09-13 15:04:55.213261814 +0200 +++ /var/tmp/diff_new_pack.b2LXJQ/_new 2019-09-13 15:04:55.217261814 +0200 @@ -26,6 +26,7 @@ Group: Development/Languages/Python URL: https://github.com/zopefoundation/zdaemon Source: https://files.pythonhosted.org/packages/source/z/zdaemon/%{modname}-%{version}.tar.gz +Patch0: obs-timeout.patch BuildRequires: %{python_module ZConfig} BuildRequires: %{python_module manuel} BuildRequires: %{python_module mock} @@ -49,6 +50,7 @@ %prep %setup -q -n %{modname}-%{version} +%patch0 -p1 # remove unwanted shebang sed -i '1 { /^#!/ d }' src/zdaemon/tests/nokill.py rm -rf src/zdaemon.egg-info ++++++ obs-timeout.patch ++++++ Index: zdaemon-4.3/src/zdaemon/tests/tests.py =================================================================== --- zdaemon-4.3.orig/src/zdaemon/tests/tests.py +++ zdaemon-4.3/src/zdaemon/tests/tests.py @@ -264,77 +264,6 @@ def test_log_rotation(): """ -def test_start_test_program(): - """ - >>> write('t.py', - ... ''' - ... import time - ... time.sleep(1) - ... open('x', 'w').close() - ... time.sleep(99) - ... ''') - - >>> write('conf', - ... ''' - ... <runner> - ... program %s t.py - ... start-test-program cat x - ... </runner> - ... ''' % sys.executable) - - >>> import os - - >>> system("./zdaemon -Cconf start") - . . - daemon process started, pid=21446 - - >>> os.path.exists('x') - True - >>> os.remove('x') - - >>> system("./zdaemon -Cconf restart") - . . . - daemon process restarted, pid=19622 - >>> os.path.exists('x') - True - - >>> system("./zdaemon -Cconf stop") - <BLANKLINE> - daemon process stopped - """ - - -def test_start_timeout(): - """ - >>> write('t.py', - ... ''' - ... import time - ... time.sleep(9) - ... ''') - - >>> write('conf', - ... ''' - ... <runner> - ... program %s t.py - ... start-test-program cat x - ... start-timeout 1 - ... </runner> - ... ''' % sys.executable) - - >>> import time - >>> start = time.time() - - >>> system("./zdaemon -Cconf start") - <BLANKLINE> - Program took too long to start - Failed: 1 - - >>> system("./zdaemon -Cconf stop") - <BLANKLINE> - daemon process stopped - """ - - def DAEMON_MANAGER_MODE_leak(): """ Zdaemon used an environment variable to flag that it's running in
