chiark / gitweb /
[PATCH] support SUBSYSTEM as a rule key
[elogind.git] / test / topo_test
index 9225685..77333a9 100644 (file)
@@ -8,16 +8,18 @@ export SYSFS_PATH=$PWD/sys/
 export UDEV_CONFIG_FILE=$PWD/$CONFIG
 
 cat > $RULES << EOF
-TOPOLOGY, BUS="scsi", place="0:0:0:0", NAME="first_disk%n"
+BUS="scsi", place="0:0:0:0", NAME="first_disk%n"
 EOF
 
 cat > $CONFIG << EOF
 udev_root="$PWD/udev/"
-udev_db="$PWD/udev/.udev.tdb"
+udev_db="$PWD/udev/.udevdb"
 udev_rules="$PWD/$RULES"
 udev_permissions="$PWD/udev.permissions"
 EOF
 
+mkdir udev
+
 export ACTION=add
 export DEVPATH=block/sda
 
@@ -42,3 +44,4 @@ ls udev
 
 rm $RULES
 rm $CONFIG
+rm -rf udev