Reland "Add support for launching webcam software for use in recipes"
This is a reland of cd469a4ce5315fee62bb77b5e781a18a99da506d With vpython specified Original change's description: > Add support for launching webcam software for use in recipes > > * Copy ensure_webcam_is_running.py from recipes repo > * Turn it into a wrapper that can launch another script > (fix_python_path is copied from test_env.py as _ForcePythonInterpreter) > * Support it in mb.py > * Add it to video_capture_unittests > > No-Try: True > Bug: chromium:755660 > Change-Id: I376724a77e443620724add7818592e9368d02079 > Reviewed-on: https://webrtc-review.googlesource.com/77320 > Commit-Queue: Oleh Prypin <oprypin@webrtc.org> > Reviewed-by: Patrik Höglund <phoglund@webrtc.org> > Cr-Commit-Position: refs/heads/master@{#23275} No-Try: True Bug: chromium:755660 Change-Id: Ibf4fbe3fea4b003a23b12332b3a6078a2db99a8d Reviewed-on: https://webrtc-review.googlesource.com/77460 Reviewed-by: Patrik Höglund <phoglund@webrtc.org> Commit-Queue: Oleh Prypin <oprypin@webrtc.org> Cr-Commit-Position: refs/heads/master@{#23279}
This commit is contained in:
@ -842,7 +842,9 @@ class MetaBuildWrapper(object):
|
||||
'--logcat-output-file', '${ISOLATED_OUTDIR}/logcats',
|
||||
'--store-tombstones']
|
||||
else:
|
||||
extra_files = ['../../testing/test_env.py']
|
||||
if isolate_map[target].get('use_webcam', False):
|
||||
cmdline.append('../../tools_webrtc/ensure_webcam_is_running.py')
|
||||
extra_files.append('../../tools_webrtc/ensure_webcam_is_running.py')
|
||||
|
||||
# This needs to mirror the settings in //build/config/ui.gni:
|
||||
# use_x11 = is_linux && !use_ozone.
|
||||
@ -850,12 +852,10 @@ class MetaBuildWrapper(object):
|
||||
|
||||
xvfb = use_x11 and test_type == 'windowed_test_launcher'
|
||||
if xvfb:
|
||||
extra_files += [
|
||||
'../../testing/xvfb.py',
|
||||
]
|
||||
|
||||
cmdline = (['../../testing/xvfb.py'] if xvfb else
|
||||
['../../testing/test_env.py'])
|
||||
cmdline.append('../../testing/xvfb.py')
|
||||
extra_files.append('../../testing/xvfb.py')
|
||||
else:
|
||||
cmdline.append('../../testing/test_env.py')
|
||||
|
||||
# Memcheck is only supported for linux. Ignore in other platforms.
|
||||
if is_linux and 'rtc_use_memcheck=true' in vals['gn_args']:
|
||||
|
||||
Reference in New Issue
Block a user