mirror of
https://github.com/systemd/systemd-stable.git
synced 2025-02-26 09:57:26 +03:00
udev-test: fix test skip condition
When there is a failure to setup the environment, the following happens: 1. Command "./test-udev check" exits with non-zero code. 2. Perl function "system" returns the code. 3. The code is evaluated as true by Perl. Then we stop the test.
This commit is contained in:
parent
a01eb97b6c
commit
7935dae547
@ -1661,7 +1661,7 @@ if (!udev_setup()) {
|
||||
exit($EXIT_TEST_SKIP);
|
||||
}
|
||||
|
||||
if (!system($udev_bin, "check")) {
|
||||
if (system($udev_bin, "check")) {
|
||||
warn "$udev_bin failed to set up the environment, skipping the test";
|
||||
exit($EXIT_TEST_SKIP);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user