fsutils: refactor test

Signed-off-by: Akihiro Suda <suda.akihiro@lab.ntt.co.jp>
This commit is contained in:
Akihiro Suda 2017-05-10 05:23:28 +00:00
parent 825c2ce3cc
commit e64757b657

View File

@ -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")
}