From 134a415c2d690e57d0f1add23e900e60bcef4627 Mon Sep 17 00:00:00 2001 From: Martin Wilck Date: Tue, 24 Apr 2018 18:09:50 +0200 Subject: [PATCH] test/udev-test.pl: Make some tests a little harder Add some rules that make it a bit harder to pass, mainly the non-existence checks. (cherry picked from commit 06d4d4e24e7d0b51120b165e540d278842e8b1a3) Related: #1642728 --- test/udev-test.pl | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) diff --git a/test/udev-test.pl b/test/udev-test.pl index a9c2dd95f1..7465b5859e 100755 --- a/test/udev-test.pl +++ b/test/udev-test.pl @@ -1358,7 +1358,7 @@ EOF exp_links => ["sda-part-1"], }], rules => < ["part"], not_exp_links => ["disk"], }, + { + devpath => "/devices/pci0000:00/0000:00:1f.2/host0/target0:0:0/0:0:0:0/block/sda", + exp_links => ["disk"], + not_exp_links => ["part"], + }, ], rules => < < < "/devices/pci0000:00/0000:00:1f.2/host0/target0:0:0/0:0:0:0/block/sda", exp_perms => "1:1:0400", - exp_rem_error => "yes", }], rules => <