test: Disable systemd v251 sysfs verification

The umockdev code to disable it by setting the variable does not
propagate through python. Set the variable here until there is a more
permament solution available.
This commit is contained in:
Benjamin Berg 2022-05-25 16:53:34 +02:00
parent 190d12e292
commit c330351937

View file

@ -190,6 +190,8 @@ class Tests(dbusmock.DBusTestCase):
# note: Python doesn't propagate the setenv from Testbed.new(), so we
# have to do that ourselves
env['UMOCKDEV_DIR'] = self.testbed.get_root_dir()
# Hotfix for https://github.com/systemd/systemd/issues/23499
env['SYSTEMD_DEVICE_VERIFY_SYSFS'] = '0'
self.daemon_log = OutputChecker()
if os.getenv('VALGRIND') != None: