]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
test/udev-test.pl: last_rule is unsupported
authorMartin Wilck <mwilck@suse.com>
Tue, 24 Apr 2018 16:08:18 +0000 (18:08 +0200)
committerMichal Sekletár <msekleta@redhat.com>
Mon, 2 Nov 2020 10:43:14 +0000 (11:43 +0100)
the "last_rule" option hasn't been supported for some time.
Therefore this test fails if a "not_exp_links" attribute is added,
as it should be. Mark it appropriately.

test/udev-test.pl

index 15693c26b15962dee1e642d4b92677986b80e3f7..58ce49c161774960bae7ba81681df99b7b3a8131 100755 (executable)
@@ -1373,11 +1373,14 @@ SUBSYSTEMS=="scsi", KERNEL=="sda1", SYMLINK+="start-%r-end"
 EOF
         },
         {
+                # This is not supported any more
                 desc            => "last_rule option",
                 devices => [
                         {
                                 devpath         => "/devices/pci0000:00/0000:00:1f.2/host0/target0:0:0/0:0:0:0/block/sda/sda1",
                                 exp_links       => ["last"],
+                                not_exp_links   => ["very-last"],
+                                exp_nodev_error => "yes",
                         }],
                 rules           => <<EOF
 SUBSYSTEMS=="scsi", KERNEL=="sda1", SYMLINK+="last", OPTIONS="last_rule"