summaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
Diffstat (limited to 'test')
-rw-r--r--test/test-execute/exec-specifier.service1
-rw-r--r--test/test-execute/exec-specifier@.service1
-rwxr-xr-xtest/test-systemd-tmpfiles.py2
-rwxr-xr-xtest/udev-test.pl4
4 files changed, 3 insertions, 5 deletions
diff --git a/test/test-execute/exec-specifier.service b/test/test-execute/exec-specifier.service
index 321d0e338a..2b487bae8c 100644
--- a/test/test-execute/exec-specifier.service
+++ b/test/test-execute/exec-specifier.service
@@ -27,7 +27,6 @@ ExecStart=sh -c 'test %g = $$(id -gn)'
ExecStart=sh -c 'test %G = $$(id -g)'
ExecStart=test %h = /root
ExecStart=sh -c 'test -x %s'
-ExecStart=sh -c 'test %m = $$(cat /etc/machine-id)'
ExecStart=sh -c 'test %b = $$(cat /proc/sys/kernel/random/boot_id | sed -e 's/-//g')'
ExecStart=sh -c 'test %H = $$(uname -n)'
ExecStart=sh -c 'test %v = $$(uname -r)'
diff --git a/test/test-execute/exec-specifier@.service b/test/test-execute/exec-specifier@.service
index 46c8503f1d..69e969f716 100644
--- a/test/test-execute/exec-specifier@.service
+++ b/test/test-execute/exec-specifier@.service
@@ -24,7 +24,6 @@ ExecStart=sh -c 'test %g = $$(id -gn)'
ExecStart=sh -c 'test %G = $$(id -g)'
ExecStart=test %h = /root
ExecStart=sh -c 'test -x %s'
-ExecStart=sh -c 'test %m = $$(cat /etc/machine-id)'
ExecStart=sh -c 'test %b = $$(cat /proc/sys/kernel/random/boot_id | sed -e 's/-//g')'
ExecStart=sh -c 'test %H = $$(uname -n)'
ExecStart=sh -c 'test %v = $$(uname -r)'
diff --git a/test/test-systemd-tmpfiles.py b/test/test-systemd-tmpfiles.py
index 4b3bdf3364..af9ff9bf93 100755
--- a/test/test-systemd-tmpfiles.py
+++ b/test/test-systemd-tmpfiles.py
@@ -87,7 +87,7 @@ def test_content(line, expected, *, user, extra={}, subpath='/arg', path_cb=None
def test_valid_specifiers(*, user):
test_content('f {} - - - - two words', 'two words', user=user)
- if id128:
+ if id128 and os.path.isfile('/etc/machine-id'):
try:
test_content('f {} - - - - %m', '{}'.format(id128.get_machine().hex), user=user)
except AssertionError as e:
diff --git a/test/udev-test.pl b/test/udev-test.pl
index 985968d120..3099b5746f 100755
--- a/test/udev-test.pl
+++ b/test/udev-test.pl
@@ -1980,8 +1980,8 @@ EOF
not_exp_links => ["notthere"],
}],
rules => <<EOF
-TEST=="/etc/machine-id", SYMLINK+="there"
-TEST!="/etc/machine-id", SYMLINK+="notthere"
+TEST=="/etc/passwd", SYMLINK+="there"
+TEST!="/etc/passwd", SYMLINK+="notthere"
EOF
},
{