Files
linuxkit/test/pkg/containerd/run.sh
Ian Campbell f3ec48417c Redirect $TMPDIR when running containerd tests
These tests expect a $TMPDIR which supports user xattrs, which the tmpfs on
/tmp does not. Redirect it to the persistent disk which does.

Signed-off-by: Ian Campbell <ijc@docker.com>
2019-02-13 11:41:40 +00:00

20 lines
421 B
Bash
Executable File

#!/bin/sh
function failed {
printf "containerd test suite FAILED\n"
exit 1
}
# Get these into the logs.
git describe HEAD
git rev-parse HEAD
# The unit tests need user_xattr support, which /tmp (a tmpfs) does not support.
mkdir -p /var/lib/tmp
export TMPDIR=/var/lib/tmp
# unset -race (does not work on alpine; see golang/go#14481)
export TESTFLAGS=
make root-test || failed
printf "containerd test suite PASSED\n"