diff options
author | kay.sievers@vrfy.org <kay.sievers@vrfy.org> | 2004-11-12 06:52:55 +0100 |
---|---|---|
committer | Greg KH <gregkh@suse.de> | 2005-04-26 22:25:38 -0700 |
commit | 6818c51d7abeab9914eb7193968b1efa9459a853 (patch) | |
tree | f05af9087f42f67bff00f71778cf3f9dc80323b1 /test/udev-test.pl | |
parent | 02fa9ae58920b431bc37182716dd863f1c482651 (diff) |
[PATCH] support SUBSYSTEM as a rule key
This should make it easier to catch e.g all block or net devices with
a single rule.
Diffstat (limited to 'test/udev-test.pl')
-rw-r--r-- | test/udev-test.pl | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/test/udev-test.pl b/test/udev-test.pl index 2ba63fe83f..5f6f864df2 100644 --- a/test/udev-test.pl +++ b/test/udev-test.pl @@ -1104,6 +1104,17 @@ EOF KERNEL="sda", NAME="cdrom%e" EOF }, + { + desc => "SUBSYSTEM test", + subsys => "block", + devpath => "/block/sda", + exp_name => "node", + conf => <<EOF +BUS="scsi", KERNEL="sda", NAME="should_not_match", SUBSYSTEM="vc" +BUS="scsi", KERNEL="sda", NAME="node", SUBSYSTEM="block" +BUS="scsi", KERNEL="sda", NAME="should_not_match2", SUBSYSTEM="vc" +EOF + }, ); # set env |