]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
test-udev: pass test_env to make the test use systemd-detect-virt in build directory
authorYu Watanabe <watanabe.yu+github@gmail.com>
Sun, 7 Sep 2025 04:55:45 +0000 (13:55 +0900)
committerYu Watanabe <watanabe.yu+github@gmail.com>
Wed, 17 Sep 2025 13:20:42 +0000 (22:20 +0900)
Otherwise, the test fails if the running host does not have
systemd-detect-virt.

test/meson.build

index 4cdd2f430367f9b59109be29adbd1417416413e7..505a14aa81549c0e26766974df06be642838d7ce 100644 (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')