From e64757b6574c9f09ae61f0dbd908ba7d9111d480 Mon Sep 17 00:00:00 2001 From: Akihiro Suda Date: Wed, 10 May 2017 05:23:28 +0000 Subject: [PATCH] fsutils: refactor test Signed-off-by: Akihiro Suda --- fs/fsutils/fsutils_linux_test.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/fs/fsutils/fsutils_linux_test.go b/fs/fsutils/fsutils_linux_test.go index 4a648239c..221e4f00b 100644 --- a/fs/fsutils/fsutils_linux_test.go +++ b/fs/fsutils/fsutils_linux_test.go @@ -49,7 +49,7 @@ func testSupportsDType(t *testing.T, expected bool, mkfsCommand string, mkfsArg t.Log(string(out)) } if err != nil { - t.Fatal(err) + t.Skip("skipping the test because %s failed. This is probably your %s is an unsupported version.", mkfsCommand, mkfsCommand) } // loopback-mount the image. @@ -87,5 +87,5 @@ func TestSupportsDTypeWithFType1XFS(t *testing.T) { } func TestSupportsDTypeWithExt4(t *testing.T) { - testSupportsDType(t, true, "mkfs.ext4") + testSupportsDType(t, true, "mkfs.ext4", "-F") }