From f3ec48417c43a9e2e2ffdb5a5bfebf7e00ea8b11 Mon Sep 17 00:00:00 2001 From: Ian Campbell Date: Mon, 11 Feb 2019 16:06:38 +0000 Subject: [PATCH] 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 --- test/pkg/containerd/run.sh | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/test/pkg/containerd/run.sh b/test/pkg/containerd/run.sh index 23dc8d2b8..a08e4bffa 100755 --- a/test/pkg/containerd/run.sh +++ b/test/pkg/containerd/run.sh @@ -9,6 +9,10 @@ function failed { 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