tests: use the poweroff pkg in test-kernel-config

Signed-off-by: Dave Tucker <dt@docker.com>
This commit is contained in:
Dave Tucker 2017-04-12 12:04:49 +01:00
parent 05767273f3
commit fb4d621833
2 changed files with 6 additions and 4 deletions

View File

@ -19,8 +19,13 @@ onboot:
net: host
command: ["/sbin/dhcpcd", "--nobackground", "-f", "/dhcpcd.conf", "-1"]
- 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
command: ["/bin/sh", "/poweroff.sh", "3"]
capabilities:
- CAP_SYS_BOOT
readonly: true

View File

@ -2,7 +2,6 @@
function failed {
printf "Kernel config test suite FAILED\n"
/sbin/poweroff -f
}
/check-kernel-config.sh || failed
@ -11,5 +10,3 @@ bash /check-config.sh || failed
printf "Kernel config test suite PASSED\n"
cat /etc/linuxkit
/sbin/poweroff -f