runtest: Remove run_command -> android_build dependency.
This is desired because run_command is used by puppetmaster which should have
no dependency on android build system.
diff --git a/testrunner/run_command.py b/testrunner/run_command.py
index 8cf385b..7d1f547 100755
--- a/testrunner/run_command.py
+++ b/testrunner/run_command.py
@@ -23,7 +23,6 @@
import time
# local imports
-import android_build
import errors
import logger
@@ -129,16 +128,14 @@
output are always discarded.
Args:
- binary: basename of the file to be run. It is expected to be under
- out/host/<os>-<arch>/bin.
+ binary: full path of the file to be run.
valgrind: If True the command will be run under valgrind.
Returns:
The command exit code (int)
"""
- full_path = os.path.join(android_build.GetHostBin(), binary)
if not valgrind:
- subproc = subprocess.Popen(full_path, stdout=subprocess.PIPE,
+ subproc = subprocess.Popen(binary, stdout=subprocess.PIPE,
stderr=subprocess.STDOUT)
subproc.wait()
if subproc.returncode != 0: # In case of error print the output