diff options
author | android-build-team Robot <android-build-team-robot@google.com> | 2020-08-20 22:37:15 +0000 |
---|---|---|
committer | android-build-team Robot <android-build-team-robot@google.com> | 2020-08-20 22:37:15 +0000 |
commit | eaa47c72bcb1048682aa10de7634b378a7239ec1 (patch) | |
tree | 6e700966fbde382cd6f62cb41d45e4fb7190d32a | |
parent | 61a5580b350fc1d2e8106a3a76f45c9cdb2b1044 (diff) | |
parent | ae65a3e744b5e2520ad4fe8036ec6d363f65c446 (diff) | |
download | vndk-android-11.0.0_r16.tar.gz |
Snap for 6779986 from ae65a3e744b5e2520ad4fe8036ec6d363f65c446 to rvc-d1-b-releaseandroid-11.0.0_r16android11-d1-b-release
Change-Id: Ibf29b2310d995d8fe87000c55e8cd982df562d09
-rw-r--r-- | utils.py | 5 |
1 files changed, 4 insertions, 1 deletions
@@ -247,4 +247,7 @@ class AndroidDevice(object): if return_code != 0 or err.strip(): raise IOError("`find %s -name '%s' %s` stdout: %s\nstderr: %s" % (path, name_pattern, " ".join(options), out, err)) - return out.strip().split("\n") + + # Return empty file list when out is an empty string. + out = out.strip() + return out.split("\n") if out else [] |