test/py: Add an option to execute a string containing a command
authorSimon Glass <sjg@chromium.org>
Sun, 3 Jul 2016 15:40:40 +0000 (09:40 -0600)
committerTom Rini <trini@konsulko.com>
Thu, 14 Jul 2016 22:22:35 +0000 (18:22 -0400)
commit8b304a37df13477f02fca5a6f5eaa3e55d7b4bf1
tree0bd33d216e78eabe7c1f0a5810e5e526734658ab
parentf3d3e95ce5d26777a6a138635f9bb12ca7ccf6fa
test/py: Add an option to execute a string containing a command

It is sometimes inconvenient to convert a string into a list for execution
with run_and_log(). Provide a helper function to do this.

Signed-off-by: Simon Glass <sjg@chromium.org>
Reviewed-by: Teddy Reed <teddy.reed@gmail.com>
test/py/u_boot_utils.py