blob: 54242815b22cedaf81b397b8c09551984f97da3e [file] [log] [blame]
import common
import sys, os, time, subprocess
from autotest_lib.client.common_lib import utils
# We want to set the output (stdout&stderr) of the autotest binary onto our
# stdout channel. We went to get the status stream of autotest back on our
# stderr channel - we set up fd 3 for this, and can
# open it later.
# Set up file descriptor 3 as a copy of our stderr. This is the status channel
# Join our stderr in with our stdout
autodir = os.path.dirname(sys.argv[0])
autotest = os.path.join(autodir, 'autotest')
args = [autotest] + sys.argv[1:]
if '-H' not in args:
args.insert(1, '-H simple')
cmd = ' '.join(args)
exit_code =, shell=True, stderr=subprocess.STDOUT,
sys.exit(exit_code) # pass on the exit status from autotest