teknoraver / rpms / systemd

Forked from rpms/systemd 3 months ago
Clone

Blame SOURCES/0532-test-udev-test.pl-last_rule-is-unsupported.patch

bd1529
From 2d0b828715e67f7accda6f73481deb74febebcb6 Mon Sep 17 00:00:00 2001
bd1529
From: Martin Wilck <mwilck@suse.com>
bd1529
Date: Tue, 24 Apr 2018 18:08:18 +0200
bd1529
Subject: [PATCH] test/udev-test.pl: last_rule is unsupported
bd1529
bd1529
the "last_rule" option hasn't been supported for some time.
bd1529
Therefore this test fails if a "not_exp_links" attribute is added,
bd1529
as it should be. Mark it appropriately.
bd1529
bd1529
(cherry picked from commit 17cce031531a5d3f38a27374c99d1bdba5959dbd)
bd1529
bd1529
Related: #1642728
bd1529
---
bd1529
 test/udev-test.pl | 3 +++
bd1529
 1 file changed, 3 insertions(+)
bd1529
bd1529
diff --git a/test/udev-test.pl b/test/udev-test.pl
bd1529
index d5d0e130e3..a9c2dd95f1 100755
bd1529
--- a/test/udev-test.pl
bd1529
+++ b/test/udev-test.pl
bd1529
@@ -1373,11 +1373,14 @@ SUBSYSTEMS=="scsi", KERNEL=="sda1", SYMLINK+="start-%r-end"
bd1529
 EOF
bd1529
         },
bd1529
         {
bd1529
+                # This is not supported any more
bd1529
                 desc            => "last_rule option",
bd1529
                 devices => [
bd1529
                         {
bd1529
                                 devpath         => "/devices/pci0000:00/0000:00:1f.2/host0/target0:0:0/0:0:0:0/block/sda/sda1",
bd1529
                                 exp_links       => ["last"],
bd1529
+                                not_exp_links   => ["very-last"],
bd1529
+                                exp_nodev_error => "yes",
bd1529
                         }],
bd1529
                 rules           => <
bd1529
 SUBSYSTEMS=="scsi", KERNEL=="sda1", SYMLINK+="last", OPTIONS="last_rule"