diff options
Diffstat (limited to 'build/art.go')
-rw-r--r-- | build/art.go | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/build/art.go b/build/art.go index 8deea23098..af2a5deb54 100644 --- a/build/art.go +++ b/build/art.go @@ -291,10 +291,11 @@ func addTestcasesFile(ctx android.InstallHookContext) { defer artTestMutex.Unlock() if ctx.Os().Class == android.Host { - path := ctx.Path().ToMakePath().String() - parts := strings.Split(path, "/") - // Keep last two parts of the path (e.g. bin/dex2oat). - testcasesContent[strings.Join(parts[len(parts)-2:], "/")] = path + src := ctx.SrcPath().String() + path := strings.Split(ctx.Path().ToMakePath().String(), "/") + // Keep last two parts of the install path (e.g. bin/dex2oat). + dst := strings.Join(path[len(path)-2:], "/") + testcasesContent[dst] = src } } |