Merge "Remove the special-casing of /dev from test path normalization." am: 5037e09ca0
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/1623762 MUST ONLY BE SUBMITTED BY AUTOMERGER Change-Id: I31ee9923f5e9850b51b0b46fc7bccf3a40aab3f2
This commit is contained in:
@@ -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 {
|
||||||
|
Reference in New Issue
Block a user