chiark / gitweb /
[PATCH] fix up the tests to support the rules file name change
[elogind.git] / test / udev-test.pl
index 3f48de8f3eaa7624df7441e37ecfeca67fc096c3..8af09a027b99555f372fd713528bd92b3718f4e4 100644 (file)
@@ -48,6 +48,15 @@ EOF
                expected => "boot_disk1" ,
                conf     => <<EOF
 LABEL, BUS="scsi", vendor="IBM-ESXS", NAME="boot_disk%n"
+EOF
+       },
+       {
+               desc     => "catch device by wildcard",
+               subsys   => "tty",
+               devpath  => "class/tty/ttyUSB0",
+               expected => "visor/0" ,
+               conf     => <<EOF
+REPLACE, KERNEL="ttyUSB*", NAME="visor/%n"
 EOF
        },
        {
@@ -152,7 +161,7 @@ sub udev {
        my ($action, $subsys, $devpath, $config) = @_;
 
        $ENV{DEVPATH} = $devpath;
-       $ENV{UDEV_CONFIG_FILE} = $conf_tmp;
+       $ENV{UDEV_RULES_FILE} = $conf_tmp;
 
        # create temporary config
        open CONF, ">$conf_tmp" || die "unable to create config file: $conf_tmp";