mountlib: fix rc tests when mount does not work

This fixed the Docker 1.52 build
This commit is contained in:
Nick Craig-Wood 2020-05-28 13:11:42 +01:00
parent 6882aeff97
commit 78b0329928

View File

@ -78,7 +78,9 @@ func TestRc(t *testing.T) {
// mount // mount
_, err = mount.Fn(ctx, in) _, 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 // check file.txt is there now
fi, err := os.Stat(filePath) fi, err := os.Stat(filePath)