Comment 6 for bug 925582

Revision history for this message
Jeff Lane  (bladernr) wrote :

Interesting... that would be why....

bladernr@klaatu:~/development/checkbox$ cat <<'EOF' | PYTHONPATH=.:$PYTHONPATH scripts/run_templates -t -s 'scripts/udev_resource | scripts/filter_templates -w "category=DISK"'
plugin: shell
name: disk/benchmark_`ls /sys$path/block`
requires: device.path == "$path" and package.name == 'linux'
user: root
command: hdparm -tT /dev/`ls /sys$path/block` |sed 's/:.*= */ = /' | grep -v "^$"
description: This test runs hdparm timing tests as a benchmark for $path
EOF

ls: cannot access /sys/devices/pci0000:00/0000:00:1f.2/host0/target0:0:0/0:0:0:0/block/sda/block: No such file or directory
ls: cannot access /sys/devices/pci0000:00/0000:00:1f.2/host0/target0:0:0/0:0:0:0/block/sda/block: No such file or directory
plugin: shell
name: disk/benchmark_
requires: device.path == "/devices/pci0000:00/0000:00:1f.2/host0/target0:0:0/0:0:0:0/block/sda" and package.name == 'linux'
user: root
command: hdparm -tT /dev/ |sed 's/:.*= */ = /' | grep -v "^$"
description: This test runs hdparm timing tests as a benchmark for /devices/pci0000:00/0000:00:1f.2/host0/target0:0:0/0:0:0:0/block/sda