| commit | 39bfcc3ebd7c37dfda71f6a18a0bfef16773d6cc | [log] [tgz] |
|---|---|---|
| author | Mythri Alle <mythria@google.com> | Fri Aug 01 12:36:49 2025 +0000 |
| committer | Mythri Alle <mythria@google.com> | Fri Aug 01 12:36:49 2025 +0000 |
| tree | 686d1426929334239507fea23aa4fd01938a29e9 | |
| parent | 5d05dadd5e29fe6c99dba702899d27fb64758fee [diff] |
Check that the pwd command acutally returned a path Sometimes `run-as` command to get the `pwd` could fail and return an error message instead of a path. We treated all non-empty strings as valid paths and this led to strange error later on when the path was passed to the next shell command. This Cl adds a simple check to see if the returned string is a path. Bug: 354945018 Test: cts run JvmtiHost Flag: TEST_ONLY Change-Id: Ife15de222dbdff08062526b7ad9c14bd25977782