Switch ctest to array/appends for cros_au_test_harness call.

I was getting the error about passing along an empty string argument, and this will fix that.

Change-Id: Iffd05fe570f3a6092bbeee05abf8a1884decd644

BUG=N0ne
TEST=remote testing in progress (no VM testing)

Review URL: http://codereview.chromium.org/6465014
This commit is contained in:
Don Garrett 2011-02-09 13:51:43 -08:00
parent 142ca06512
commit 6620630c34

View File

@ -257,24 +257,23 @@ def RunAUTestHarness(board, channel, latest_url_base, zip_server_base,
zip_url = GetLatestZipUrl(board, channel, latest_url_base, zip_server_base) zip_url = GetLatestZipUrl(board, channel, latest_url_base, zip_server_base)
GrabZipAndExtractImage(zip_url, download_folder, _IMAGE_TO_EXTRACT) GrabZipAndExtractImage(zip_url, download_folder, _IMAGE_TO_EXTRACT)
no_graphics_flag = ''
if no_graphics: no_graphics_flag = '--no_graphics'
# Tests go here. # Tests go here.
latest_image = RunCommand(['./get_latest_image.sh', '--board=%s' % board], latest_image = RunCommand(['./get_latest_image.sh', '--board=%s' % board],
cwd=crosutils_root, redirect_stdout=True, cwd=crosutils_root, redirect_stdout=True,
print_cmd=True).strip() print_cmd=True).strip()
RunCommand(['bin/cros_au_test_harness', cmd = ['bin/cros_au_test_harness',
'--base_image=%s' % os.path.join(download_folder, '--base_image=%s' % os.path.join(download_folder,
_IMAGE_TO_EXTRACT), _IMAGE_TO_EXTRACT),
'--target_image=%s' % os.path.join(latest_image, '--target_image=%s' % os.path.join(latest_image,
_IMAGE_TO_EXTRACT), _IMAGE_TO_EXTRACT),
no_graphics_flag,
'--board=%s' % board, '--board=%s' % board,
'--type=%s' % type, '--type=%s' % type,
'--remote=%s' % remote, '--remote=%s' % remote,
], cwd=crosutils_root) ]
if no_graphics: cmd.append('--no_graphics')
RunCommand(cmd, cwd=crosutils_root)
def main(): def main():