fsutils: refactor test
Signed-off-by: Akihiro Suda <suda.akihiro@lab.ntt.co.jp>
This commit is contained in:
parent
825c2ce3cc
commit
e64757b657
@ -49,7 +49,7 @@ func testSupportsDType(t *testing.T, expected bool, mkfsCommand string, mkfsArg
|
|||||||
t.Log(string(out))
|
t.Log(string(out))
|
||||||
}
|
}
|
||||||
if err != nil {
|
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.
|
// loopback-mount the image.
|
||||||
@ -87,5 +87,5 @@ func TestSupportsDTypeWithFType1XFS(t *testing.T) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
func TestSupportsDTypeWithExt4(t *testing.T) {
|
func TestSupportsDTypeWithExt4(t *testing.T) {
|
||||||
testSupportsDType(t, true, "mkfs.ext4")
|
testSupportsDType(t, true, "mkfs.ext4", "-F")
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user