diff options
author | 2020-07-01 11:29:47 +0000 | |
---|---|---|
committer | 2020-07-01 12:41:06 +0000 | |
commit | 0a17b6a0e705e45cf47407d0573ef8a7fd67cd99 (patch) | |
tree | 9b864aae8d952fc0ee2829672220774c91494303 /build/art.go | |
parent | b7f4d0f15f02224ce5048ba566b2dce193ee103a (diff) |
Revert "Support running of host gtests in eng-prod"
This reverts commit 22872da653053bb4b86fbef67163a9f6b7aee25b.
Reason for revert: Checking if this CL is cause of b/160132136
Bug: 147817558
Bug: 160132136
Change-Id: Ifb6f2292292a7f69fbd0f2e9204fd37dbca84277
Diffstat (limited to 'build/art.go')
-rw-r--r-- | build/art.go | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/build/art.go b/build/art.go index af2a5deb54..8deea23098 100644 --- a/build/art.go +++ b/build/art.go @@ -291,11 +291,10 @@ func addTestcasesFile(ctx android.InstallHookContext) { defer artTestMutex.Unlock() if ctx.Os().Class == android.Host { - 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 + 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 } } |