fix(testrun): report a sidecar that dies at startup as the exit it was

This commit is contained in:
pj committed 2026-08-15 22:42:26 +05:30
1 parent f819dad7b6
commit 708a8a2929
3 files changed
+148 -25

No files matched your search

+1 -5
View File
@@ -221,11 +221,7 @@ func navOverlayCommand(ctx context.Context, adb, serial, overlay string) *exec.C
// EnvWithAndroidPlatformTools returns env with the directory containing adb
// prepended to PATH, so child processes (the sidecar) can invoke adb even
// when the user hasn't set up their shell PATH.
func EnvWithAndroidPlatformTools(env []string) []string {
adb, err := AdbBinary()
if err != nil {
return env
}
func EnvWithAndroidPlatformTools(env []string, adb string) []string {
adbDir := filepath.Dir(adb)
result := make([]string, 0, len(env))
found := false