diff options
author | Michal Sekletar <msekletar@users.noreply.github.com> | 2017-01-06 10:27:35 +0100 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2017-01-06 10:27:35 +0100 |
commit | 01349f5d01e0b59168722403b0c1c2325b15512c (patch) | |
tree | 33f6b8667d5080a51d2f70ec94e9faa367213e0d /test | |
parent | 99381655221ff2e643d1dbef16368f46cd373b9f (diff) |
tests: fix failure of test-execute if /dev/mem is not available (#5028)
/dev/mem isn't necessarily available. Recently, I've encountered arm64
systems that didn't provide raw memory access via /dev/mem. Instead,
let's use /dev/kmsg since we don't support systems w/o it anyway.
Diffstat (limited to 'test')
-rw-r--r-- | test/test-execute/exec-privatedevices-no.service | 2 | ||||
-rw-r--r-- | test/test-execute/exec-privatedevices-yes.service | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/test/test-execute/exec-privatedevices-no.service b/test/test-execute/exec-privatedevices-no.service index 77aeb951b5..0285a83ee4 100644 --- a/test/test-execute/exec-privatedevices-no.service +++ b/test/test-execute/exec-privatedevices-no.service @@ -2,6 +2,6 @@ Description=Test for PrivateDev=no [Service] -ExecStart=/bin/sh -x -c 'test -c /dev/mem' +ExecStart=/bin/sh -x -c 'test -c /dev/kmsg' Type=oneshot PrivateDevices=no diff --git a/test/test-execute/exec-privatedevices-yes.service b/test/test-execute/exec-privatedevices-yes.service index ab958b646e..094257f414 100644 --- a/test/test-execute/exec-privatedevices-yes.service +++ b/test/test-execute/exec-privatedevices-yes.service @@ -2,6 +2,6 @@ Description=Test for PrivateDev=yes [Service] -ExecStart=/bin/sh -c 'test ! -c /dev/mem' +ExecStart=/bin/sh -c 'test ! -c /dev/kmsg' Type=oneshot PrivateDevices=yes |