Commit 33c1cab5 authored by Han-Wen Nienhuys's avatar Han-Wen Nienhuys

Use subtests for rename tests

parent dfd0ceb2
......@@ -522,8 +522,10 @@ func TestUnionFsRename(t *testing.T) {
}
for i, c := range configs {
t.Log("Config", i, c)
t.Run(fmt.Sprintf("config %d", i), func(t *testing.T) {
wd, clean := setupUfs(t)
defer clean()
if c.f1_ro {
WriteFile(t, wd+"/ro/file1", "c1")
}
......@@ -563,7 +565,7 @@ func TestUnionFsRename(t *testing.T) {
if err != nil {
t.Errorf("Should have gotten file1: %v", err)
}
clean()
})
}
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment