Merge "Remove the special-casing of /dev from test path normalization."

This commit is contained in:
Lukács T. Berki 2021-03-09 14:32:51 +00:00 committed by Gerrit Code Review
commit 5037e09ca0

View file

@ -787,10 +787,6 @@ func NormalizePathForTesting(path Path) string {
return "<nil path>" return "<nil path>"
} }
p := path.String() p := path.String()
// Allow absolute paths to /dev/
if strings.HasPrefix(p, "/dev/") {
return p
}
if w, ok := path.(WritablePath); ok { if w, ok := path.(WritablePath); ok {
rel, err := filepath.Rel(w.buildDir(), p) rel, err := filepath.Rel(w.buildDir(), p)
if err != nil { if err != nil {