diff options
author | Hongguang Chen <hgchen@google.com> | 2020-08-10 19:33:33 +0000 |
---|---|---|
committer | Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com> | 2020-08-10 19:33:33 +0000 |
commit | ae65a3e744b5e2520ad4fe8036ec6d363f65c446 (patch) | |
tree | 6e700966fbde382cd6f62cb41d45e4fb7190d32a | |
parent | 56acfb6bbee923bf188656c476c8b436e6ef2498 (diff) | |
parent | 719e9a5c20b2cf3e6b204fc2f34a94c709ebe5a3 (diff) | |
download | vndk-ae65a3e744b5e2520ad4fe8036ec6d363f65c446.tar.gz |
Return empty file list when out is an empty string. am: 0482d26ce8 am: 719e9a5c20
Original change: https://googleplex-android-review.googlesource.com/c/platform/test/vts-testcase/vndk/+/12280289
Change-Id: If8f14f9803629b706b6d349191b8310643f19a9a
-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 [] |