commit | 06f330a12ce6d44d3498477db5c8b0d5d43b4bbd | [log] [tgz] |
---|---|---|
author | Andrew Scull <ascull@google.com> | Fri May 12 05:11:30 2023 +0000 |
committer | Andrew Scull <ascull@google.com> | Fri May 12 05:19:12 2023 +0000 |
tree | 4f2a2c1ec8731c1c9c99f5f93eb82f8ac44fe3c3 | |
parent | 3e13eb5a266750dd81c0a5b432788c6fe9502aa3 [diff] |
Use String#lines() rather than String#split() Use the more predictable behaviour of String#lines() to split the stdout string as an example of how it should be parsed. String#split() has slightly surprising behaviour if stdout is empty as it results in an array containing an empty string. Test: atest RemoteProvisioningShellCommandTest Bug: 281584054 Change-Id: I06796772cc58007fefb5d2089ae709965c6576b1