Files
linuxkit/alpine/packages/test/etc/init.d/test
Justin Cormack 67b2a00853 Add conditional services based on mobyplatform
Replaces https://github.com/docker/moby/pull/282

Use mobyplatform=xxx to specify platform in boot command

Signed-off-by: Justin Cormack <justin.cormack@docker.com>
2016-07-18 12:39:14 +01:00

26 lines
308 B
Plaintext
Executable File

#!/sbin/openrc-run
depend()
{
need docker
}
start()
{
[ "$(mobyplatform)" != "test" ] && exit 0
ebegin "Running tests"
if mobytest
then
printf "Moby test suite PASSED\n"
else
printf "Moby test suite FAILED\n"
fi
eend "Tests completed"
# now terminate with extreme prejudice
poweroff -f
}