diff options
author | Tom Gundersen <teg@jklm.no> | 2014-12-11 14:17:35 +0100 |
---|---|---|
committer | Tom Gundersen <teg@jklm.no> | 2014-12-11 14:17:35 +0100 |
commit | 02cd084db7b50a45a76bcdfe03668061bf7c79d6 (patch) | |
tree | 435a0f464705d12e9ce828a2828c1d4b7b5ac37b /test | |
parent | libudev: make libudev-hwdb a wrapper around sd-hwdb (diff) | |
download | systemd-02cd084db7b50a45a76bcdfe03668061bf7c79d6.tar.gz systemd-02cd084db7b50a45a76bcdfe03668061bf7c79d6.tar.bz2 systemd-02cd084db7b50a45a76bcdfe03668061bf7c79d6.zip |
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')
-rwxr-xr-x | test/udev-test.pl | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/test/udev-test.pl b/test/udev-test.pl index 3e05b6177..d9b796700 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 }, { |