test: change abs path for gold for windows

上级 dc2ab88c
......@@ -30,7 +30,8 @@ func runTestCmd(t *testing.T, tests []cmdTestCase) {
t.Errorf("expected error, got '%v'", err)
}
if tt.golden != "" {
slash := filepath.FromSlash(tt.golden)
abs, _ := filepath.Abs(tt.golden)
slash := filepath.FromSlash(abs)
AssertGoldenString(t, output, slash)
}
})
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册