service/test: Follow symlinks in integration tests

This commit is contained in:
Derek Parker 2019-02-20 14:01:13 -08:00 committed by Alessandro Arzilli
parent 389e96ae95
commit 3194ab1c9b

@ -52,6 +52,10 @@ func testProgPath(t *testing.T, name string) string {
t.Fatal(err)
}
}
sympath, err := filepath.EvalSymlinks(fp)
if err == nil {
fp = strings.Replace(sympath, "\\", "/", -1)
}
return fp
}