diff options
author | Thomas Haller <thaller@redhat.com> | 2022-02-10 18:56:47 +0100 |
---|---|---|
committer | Thomas Haller <thaller@redhat.com> | 2022-02-10 19:06:33 +0100 |
commit | dc64cff166791135dd9194ddb73ee3af20c08b5d (patch) | |
tree | e56db52845b180a3560785f49d30e044d31bc724 /Makefile.examples | |
parent | eaa0b533da49bb6a77e3664252b7fc0b3c4b6e63 (diff) | |
download | NetworkManager-dc64cff166791135dd9194ddb73ee3af20c08b5d.tar.gz |
core/tests: make test_machine_id_read() more robust against the test system
test_machine_id_read() is a flawed unit test, as it reads the machine-id
of the machine where it's running. That means the test depends on the
test machine, which is obviously a problem.
If you had no /etc/machine-id but a /var/lib/dbus/machine-id, then previously
the test would fail. If the file exists, assume we are able to read a
valid machine-id.
On test systems that have a bogus /etc/machine-id or /var/lib/dbus/machine-id,
the test would still fail. Just don't do that.
Diffstat (limited to 'Makefile.examples')
0 files changed, 0 insertions, 0 deletions