Remove the special-casing of /dev from test path normalization.
Test: "m nothing" Change-Id: Ib88f1632792dc9351bcf52dbe78822acf94fad27
This commit is contained in:
parent
35570c14ce
commit
c5723e3af7
|
@ -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 {
|
||||||
|
|
Loading…
Reference in New Issue