From d785942ed5ec1b09fa403aa0f72af1acc3b4d988 Mon Sep 17 00:00:00 2001 From: Nick Craig-Wood Date: Thu, 28 May 2020 13:11:42 +0100 Subject: [PATCH] mountlib: fix rc tests when mount does not work This fixed the Docker 1.52 build --- cmd/mountlib/rc_test.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/cmd/mountlib/rc_test.go b/cmd/mountlib/rc_test.go index 6654ed4e5..aa9f91fdd 100644 --- a/cmd/mountlib/rc_test.go +++ b/cmd/mountlib/rc_test.go @@ -78,7 +78,9 @@ func TestRc(t *testing.T) { // mount _, err = mount.Fn(ctx, in) - require.NoError(t, err) + if err != nil { + t.Skipf("Mount failed - skipping test: %v", err) + } // check file.txt is there now fi, err := os.Stat(filePath)