Snap for 7077657 from 3e0de11636110ef958a08e861887c351b804554e to r-keystone-qcom-release
Change-Id: Ifbad7ccd4e43e4b45863f21cb6af29ba0be70b57
diff --git a/utils.py b/utils.py
index 65b2eee..c6e13c2 100644
--- a/utils.py
+++ b/utils.py
@@ -247,4 +247,7 @@
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 []