X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?p=elogind.git;a=blobdiff_plain;f=test%2Fudev-test.pl;h=d9b7967004414210bc5e11cefb20632b201c3f33;hp=14f11df8af94d53e1860ffb135cc2f52ac160a19;hb=02cd084db7b50a45a76bcdfe03668061bf7c79d6;hpb=9158d03e4042876b7627947b3489fd4d49c7553a diff --git a/test/udev-test.pl b/test/udev-test.pl index 14f11df8a..d9b796700 100755 --- a/test/udev-test.pl +++ b/test/udev-test.pl @@ -27,6 +27,7 @@ my $udev_dev = "test/dev"; my $udev_run = "test/run"; my $udev_rules_dir = "$udev_run/udev/rules.d"; my $udev_rules = "$udev_rules_dir/udev-test.rules"; +my $EXIT_TEST_SKIP = 77; my @tests = ( { @@ -1232,8 +1233,8 @@ EOF devpath => "/devices/pci0000:00/0000:00:1f.2/host0/target0:0:0/0:0:0:0/block/sda", exp_name => "there", rules => <> 8 == 0) { + print "Running in a container, skipping the test.\n"; + exit($EXIT_TEST_SKIP); +} + udev_setup(); my $test_num = 1;