summaryrefslogtreecommitdiff
path: root/test/udev-test.pl
diff options
context:
space:
mode:
authorTom Gundersen <teg@jklm.no>2014-12-11 14:17:35 +0100
committerTom Gundersen <teg@jklm.no>2014-12-11 14:17:35 +0100
commit02cd084db7b50a45a76bcdfe03668061bf7c79d6 (patch)
tree435a0f464705d12e9ce828a2828c1d4b7b5ac37b /test/udev-test.pl
parent8b516fdea74127327b0945bb50690bd70c6b6692 (diff)
tests: udev - assume /etc/machine-id rather than /etc/hosts
On todays machines /etc/hosts is not mandatory. /etc/machine-id is though, so let's rely on that instead. This makes the udev tests pass again for me.
Diffstat (limited to 'test/udev-test.pl')
-rwxr-xr-xtest/udev-test.pl4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/udev-test.pl b/test/udev-test.pl
index 3e05b61777..d9b7967004 100755
--- a/test/udev-test.pl
+++ b/test/udev-test.pl
@@ -1233,8 +1233,8 @@ EOF
devpath => "/devices/pci0000:00/0000:00:1f.2/host0/target0:0:0/0:0:0:0/block/sda",
exp_name => "there",
rules => <<EOF
-TEST=="/etc/hosts", SYMLINK+="there"
-TEST!="/etc/hosts", SYMLINK+="notthere"
+TEST=="/etc/machine-id", SYMLINK+="there"
+TEST!="/etc/machine-id", SYMLINK+="notthere"
EOF
},
{