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.
This commit is contained in:
parent
9938165522
commit
01349f5d01
|
@ -2,6 +2,6 @@
|
||||||
Description=Test for PrivateDev=no
|
Description=Test for PrivateDev=no
|
||||||
|
|
||||||
[Service]
|
[Service]
|
||||||
ExecStart=/bin/sh -x -c 'test -c /dev/mem'
|
ExecStart=/bin/sh -x -c 'test -c /dev/kmsg'
|
||||||
Type=oneshot
|
Type=oneshot
|
||||||
PrivateDevices=no
|
PrivateDevices=no
|
||||||
|
|
|
@ -2,6 +2,6 @@
|
||||||
Description=Test for PrivateDev=yes
|
Description=Test for PrivateDev=yes
|
||||||
|
|
||||||
[Service]
|
[Service]
|
||||||
ExecStart=/bin/sh -c 'test ! -c /dev/mem'
|
ExecStart=/bin/sh -c 'test ! -c /dev/kmsg'
|
||||||
Type=oneshot
|
Type=oneshot
|
||||||
PrivateDevices=yes
|
PrivateDevices=yes
|
||||||
|
|
Loading…
Reference in a new issue