From: Michal Sekletar Date: Fri, 6 Jan 2017 09:27:35 +0000 (+0100) Subject: tests: fix failure of test-execute if /dev/mem is not available (#5028) X-Git-Tag: v233~259 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=01349f5d01e0b59168722403b0c1c2325b15512c;p=thirdparty%2Fsystemd.git 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. --- diff --git a/test/test-execute/exec-privatedevices-no.service b/test/test-execute/exec-privatedevices-no.service index 77aeb951b5d..0285a83ee4b 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 ab958b646ed..094257f414e 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