test-udev: pass test_env to make the test use systemd-detect-virt in build directory

Otherwise, the test fails if the running host does not have
systemd-detect-virt.
This commit is contained in:
Yu Watanabe
2025-09-07 13:55:45 +09:00
parent abd0eb20e4
commit 87a87b02b9

View File

@@ -192,7 +192,7 @@ if want_tests != 'false'
test('test-udev',
test_udev_py,
args : ['-v'],
env : ['UDEV_RULE_RUNNER=' + exe.full_path()],
env : test_env + { 'UDEV_RULE_RUNNER' : exe.full_path() },
depends : exe,
timeout : 180,
suite : 'udev')