mirror of
https://github.com/linuxkit/linuxkit.git
synced 2025-07-20 17:49:10 +00:00
tests: use the poweroff pkg in test-kernel-config
Signed-off-by: Dave Tucker <dt@docker.com>
This commit is contained in:
parent
05767273f3
commit
fb4d621833
@ -19,8 +19,13 @@ onboot:
|
|||||||
net: host
|
net: host
|
||||||
command: ["/sbin/dhcpcd", "--nobackground", "-f", "/dhcpcd.conf", "-1"]
|
command: ["/sbin/dhcpcd", "--nobackground", "-f", "/dhcpcd.conf", "-1"]
|
||||||
- name: check-kernel-config
|
- name: check-kernel-config
|
||||||
image: "mobylinux/kernel-config:c9e41ab96b3ea6a3ced97634751e20d12a5bf52f"
|
image: "linuxkit/kernel-config:ecff41279ccbc408079a3996a956432651c6eb9c"
|
||||||
|
readonly: true
|
||||||
|
services:
|
||||||
|
- name: poweroff
|
||||||
|
image: "linuxkit/poweroff:961412b8ef5c5285de0d40ec076701d955eaa084"
|
||||||
pid: host
|
pid: host
|
||||||
|
command: ["/bin/sh", "/poweroff.sh", "3"]
|
||||||
capabilities:
|
capabilities:
|
||||||
- CAP_SYS_BOOT
|
- CAP_SYS_BOOT
|
||||||
readonly: true
|
readonly: true
|
||||||
|
@ -2,7 +2,6 @@
|
|||||||
|
|
||||||
function failed {
|
function failed {
|
||||||
printf "Kernel config test suite FAILED\n"
|
printf "Kernel config test suite FAILED\n"
|
||||||
/sbin/poweroff -f
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/check-kernel-config.sh || failed
|
/check-kernel-config.sh || failed
|
||||||
@ -11,5 +10,3 @@ bash /check-config.sh || failed
|
|||||||
printf "Kernel config test suite PASSED\n"
|
printf "Kernel config test suite PASSED\n"
|
||||||
|
|
||||||
cat /etc/linuxkit
|
cat /etc/linuxkit
|
||||||
|
|
||||||
/sbin/poweroff -f
|
|
||||||
|
Loading…
Reference in New Issue
Block a user