mirror of
https://github.com/flatcar/scripts.git
synced 2025-11-27 05:21:34 +01:00
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:
parent
142ca06512
commit
6620630c34
11
bin/ctest.py
11
bin/ctest.py
@ -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)
|
||||
GrabZipAndExtractImage(zip_url, download_folder, _IMAGE_TO_EXTRACT)
|
||||
|
||||
no_graphics_flag = ''
|
||||
if no_graphics: no_graphics_flag = '--no_graphics'
|
||||
|
||||
# Tests go here.
|
||||
latest_image = RunCommand(['./get_latest_image.sh', '--board=%s' % board],
|
||||
cwd=crosutils_root, redirect_stdout=True,
|
||||
print_cmd=True).strip()
|
||||
|
||||
RunCommand(['bin/cros_au_test_harness',
|
||||
cmd = ['bin/cros_au_test_harness',
|
||||
'--base_image=%s' % os.path.join(download_folder,
|
||||
_IMAGE_TO_EXTRACT),
|
||||
'--target_image=%s' % os.path.join(latest_image,
|
||||
_IMAGE_TO_EXTRACT),
|
||||
no_graphics_flag,
|
||||
'--board=%s' % board,
|
||||
'--type=%s' % type,
|
||||
'--remote=%s' % remote,
|
||||
], cwd=crosutils_root)
|
||||
]
|
||||
if no_graphics: cmd.append('--no_graphics')
|
||||
|
||||
RunCommand(cmd, cwd=crosutils_root)
|
||||
|
||||
|
||||
def main():
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user