commit | d560aea660690598eebc7f77efee51efcc8ad2a6 | [log] [tgz] |
---|---|---|
author | Sergei Trofimov <sergei.trofimov@arm.com> | Thu Oct 05 09:35:11 2017 +0100 |
committer | Sergei Trofimov <sergei.trofimov@arm.com> | Thu Oct 05 09:41:40 2017 +0100 |
tree | 26b6051884bad1acc90a1f6fc97e17e70746bb5f | |
parent | 4d8da589f8367a5c4ea2d60fae072c3df2e98a46 [diff] |
Target: fix read_tree_values for empty dir grep was existing with 1 when passed an empty directory, resulting in TargetError being raised unless explicitly suppressed with check_exit_code=False. This case is now fixed to correctly return an empty dict without error. read_tree_values bash function has also been optimized to not unnecessarily run find in a subshell if the path passed to the function does not exist.