Use full relative paths to get module outputs in tests

Make Rel() on ModuleOutPath and ModuleGenPath return the path
relative to the module out and module gen directories respectively,
and make TestingModule.Output() match against the full relative
path to the module.

Test: java_test.go still passes
Change-Id: Id5b2ec3fdef41d4169b943e68d032fc64a2b6f92
This commit is contained in:
Colin Cross
2017-10-18 17:27:54 -07:00
parent 11b5c51d4e
commit 702e0f8ab0
2 changed files with 19 additions and 7 deletions

View File

@@ -102,7 +102,7 @@ func (m TestingModule) Output(file string) ModuleBuildParams {
outputs = append(outputs, p.Output)
}
for _, f := range outputs {
if f.Base() == file {
if f.Rel() == file {
return p
}
}