summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorAlexey Bogdanenko <alexey@bogdanenko.com>2018-12-08 11:02:30 +0300
committerAlexey Bogdanenko <alexey@bogdanenko.com>2018-12-09 19:22:47 +0300
commit7935dae547caf164d807237f1009a9e9fa510337 (patch)
tree057aa1fa71642191e16db78f41e8a565161d217a /test
parenta01eb97b6c9b43a4303c55cf10b8ab469300f343 (diff)
downloadsystemd-7935dae547caf164d807237f1009a9e9fa510337.tar.gz
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.
Diffstat (limited to 'test')
-rwxr-xr-xtest/udev-test.pl2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/udev-test.pl b/test/udev-test.pl
index aa38bae0b1..3517feab15 100755
--- a/test/udev-test.pl
+++ b/test/udev-test.pl
@@ -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);
}