Merge "Fix TestDroiddoc's reliance on absolute paths" am: 6c968b1f0f
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/1652617 Change-Id: I48cd4a6a6d2a50a1b756c59bbdcf4ead8bc2dccf
This commit is contained in:
@@ -1429,7 +1429,7 @@ func TestDroiddoc(t *testing.T) {
|
|||||||
barStubsOutput := barStubsOutputs[0]
|
barStubsOutput := barStubsOutputs[0]
|
||||||
barDoc := ctx.ModuleForTests("bar-doc", "android_common")
|
barDoc := ctx.ModuleForTests("bar-doc", "android_common")
|
||||||
javaDoc := barDoc.Rule("javadoc").RelativeToTop()
|
javaDoc := barDoc.Rule("javadoc").RelativeToTop()
|
||||||
if g, w := javaDoc.Implicits.Strings(), barStubsOutput.String(); !inList(w, g) {
|
if g, w := android.PathsRelativeToTop(javaDoc.Implicits), android.PathRelativeToTop(barStubsOutput); !inList(w, g) {
|
||||||
t.Errorf("implicits of bar-doc must contain %q, but was %q.", w, g)
|
t.Errorf("implicits of bar-doc must contain %q, but was %q.", w, g)
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -1439,7 +1439,7 @@ func TestDroiddoc(t *testing.T) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
aidl := barDoc.Rule("aidl")
|
aidl := barDoc.Rule("aidl")
|
||||||
if g, w := javaDoc.Implicits.Strings(), aidl.Output.String(); !inList(w, g) {
|
if g, w := android.PathsRelativeToTop(javaDoc.Implicits), android.PathRelativeToTop(aidl.Output); !inList(w, g) {
|
||||||
t.Errorf("implicits of bar-doc must contain %q, but was %q.", w, g)
|
t.Errorf("implicits of bar-doc must contain %q, but was %q.", w, g)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user