[PATCH] TESTS: Fix race condition in python test
by Lukas Slebodnik
ehlo,
attached patch should fix race condition in tests.
e.g.
======================================================================
ERROR: testImport (__main__.PySssMurmurImport)
Import the module and assert it comes from tree
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/build/sssd/src/tests/pysss_murmur-test.py", line 71, in testImport
os.symlink("_py3sss_murmur.so", "pysss_murmur.so")
FileExistsError: [Errno 17] File exists: '_py3sss_murmur.so' -> 'pysss_murmur.so'
----------------------------------------------------------------------
======================================================================
ERROR: testImport (__main__.PySssMurmurImport)
Import the module and assert it comes from tree
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/build/sssd/src/tests/pysss_murmur-test.py", line 73, in testImport
os.symlink("_py2sss_murmur.so", "pysss_murmur.so")
OSError: [Errno 17] File exists
----------------------------------------------------------------------
======================================================================
ERROR: testImport (__main__.PyHbacImport)
Import the module and assert it comes from tree
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/build/sssd/src/tests/pyhbac-test.py", line 57, in testImport
os.symlink("_py2hbac.so", "pyhbac.so")
OSError: [Errno 17] File exists
----------------------------------------------------------------------
======================================================================
ERROR: testImport (__main__.PySssMurmurImport)
Import the module and assert it comes from tree
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/build/sssd/src/tests/pysss_murmur-test.py", line 79, in testImport
raise e
File "/home/build/sssd/src/tests/pysss_murmur-test.py", line 76, in testImport
import pysss_murmur
ImportError: dynamic module does not define init function (PyInit_pysss_murmur)
----------------------------------------------------------------------
LS
8 years, 2 months
[PATCH] SPEC: Fix conflict with polkit
by Lukas Slebodnik
ehlo,
we (Jakub, me) didn't catch this as part of review.
I tested on minimal machine. Later I saw conflict when I was testing
latest sssd with freeipa-server.
I think we can ignore unowned directory /usr/share/polkit-1/rules.d
or we can add dependecy (soft dependency on fedora) to polkit.
LS
8 years, 2 months