mirror of
https://github.com/systemd/systemd-stable.git
synced 2025-01-11 05:17:44 +03:00
tests: skip udev-test if running inside a chroot
This commit is contained in:
parent
b6b609dbc2
commit
e4d214efc2
@ -1535,6 +1535,13 @@ if (!($<==0)) {
|
||||
exit($EXIT_TEST_SKIP);
|
||||
}
|
||||
|
||||
# skip the test when running in a chroot
|
||||
system("systemd-detect-virt", "-r", "-q");
|
||||
if ($? >> 8 == 0) {
|
||||
print "Running in a chroot, skipping the test.\n";
|
||||
exit($EXIT_TEST_SKIP);
|
||||
}
|
||||
|
||||
# skip the test when running in a container
|
||||
system("systemd-detect-virt", "-c", "-q");
|
||||
if ($? >> 8 == 0) {
|
||||
|
Loading…
Reference in New Issue
Block a user