From mboxrd@z Thu Jan 1 00:00:00 1970 From: Stephen Warren Date: Thu, 7 Jul 2016 11:02:51 -0600 Subject: [U-Boot] [PATCH 08/14] test/py: Add an option to execute a string containing a command In-Reply-To: <1467560446-10628-9-git-send-email-sjg@chromium.org> References: <1467560446-10628-1-git-send-email-sjg@chromium.org> <1467560446-10628-9-git-send-email-sjg@chromium.org> Message-ID: <577E8B3B.90303@wwwdotorg.org> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de On 07/03/2016 09:40 AM, Simon Glass wrote: > It is sometimes inconvenient to convert a string into a list for execution > with run_and_log(). Provide a helper function to do this. > diff --git a/test/py/u_boot_utils.py b/test/py/u_boot_utils.py > +def cmd(u_boot_console, cmd_str): "cmd" seems very generic and doesn't give any clue what it does. How about extending the existing function name to e.g. "run_and_log_str"?