[yocto] [[PATCH][qa-tools] 05/16] tests/toaster/helpers.py: When execute bash remove interactive mode.

Aníbal Limón anibal.limon at linux.intel.com
Tue Feb 9 14:43:14 PST 2016


From: Aníbal Limón <limon.anibal at gmail.com>

Bash interactive mode isn't useful so remove it.

Signed-off-by: Aníbal Limón <limon.anibal at gmail.com>
---
 tests/toaster/helpers.py | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/tests/toaster/helpers.py b/tests/toaster/helpers.py
index 49f34da..7b82e88 100644
--- a/tests/toaster/helpers.py
+++ b/tests/toaster/helpers.py
@@ -8,8 +8,8 @@ VENV_NAME = 'venv'
 SHELL_CMD = os.environ['SHELL'] if 'SHELL' in os.environ else "/bin/bash"
 
 def _execute_command(directory, cmd):
-    subprocess.check_call([SHELL_CMD, "-i", "-c", "cd %s; %s" % \
-        (directory, cmd)], stdout=subprocess.PIPE, stderr=subprocess.STDOUT)
+    subprocess.check_call([SHELL_CMD, "-c", "cd %s; %s" % \
+        (directory, cmd)], stderr=subprocess.STDOUT)
 
 def _execute_command_venv(directory, venv, cmd):
     _execute_command(directory, "source %s/%s/bin/activate; %s" % \
@@ -22,7 +22,7 @@ def toaster_clone(directory, repo, ref='master', rm=False):
         else:
             raise IOError
 
-    subprocess.check_output([SHELL_CMD, "-i", "-c", "git clone %s %s" % \
+    subprocess.check_output([SHELL_CMD, "-c", "git clone %s %s" % \
         (repo, directory)], stderr=subprocess.STDOUT)
     _execute_command(directory, "git checkout %s -b %s" % \
         (ref, TOASTER_TEST_BRANCH))
-- 
2.1.4




More information about the yocto mailing list