Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(345)

Side by Side Diff: scripts/slave/recipe_modules/chromium_android/example.py

Issue 2103553002: Check that device file exists first before reverting. (Closed) Base URL: https://chromium.googlesource.com/chromium/tools/build.git@master
Patch Set: rebase Created 4 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 # Copyright 2014 The Chromium Authors. All rights reserved. 1 # Copyright 2014 The Chromium Authors. All rights reserved.
2 # Use of this source code is governed by a BSD-style license that can be 2 # Use of this source code is governed by a BSD-style license that can be
3 # found in the LICENSE file. 3 # found in the LICENSE file.
4 4
5 from recipe_engine.types import freeze 5 from recipe_engine.types import freeze
6 6
7 DEPS = [ 7 DEPS = [
8 'adb', 8 'adb',
9 'chromium', 9 'chromium',
10 'chromium_android', 10 'chromium_android',
(...skipping 363 matching lines...) Expand 10 before | Expand all | Expand 10 after
374 stream='stdout')) + 374 stream='stdout')) +
375 api.override_step_data('Read test result and report failures', 375 api.override_step_data('Read test result and report failures',
376 api.raw_io.output(result_xml_with_unexpected_failure_method))) 376 api.raw_io.output(result_xml_with_unexpected_failure_method)))
377 377
378 yield (api.test('webview_cts_invalid_output') + 378 yield (api.test('webview_cts_invalid_output') +
379 properties_for('webview_cts') + 379 properties_for('webview_cts') +
380 api.override_step_data('Run CTS', api.raw_io.stream_output( 380 api.override_step_data('Run CTS', api.raw_io.stream_output(
381 'Invalid CTS output here...', 381 'Invalid CTS output here...',
382 stream='stdout'))) 382 stream='stdout')))
383 383
384 yield (api.test('device_file_match') +
385 properties_for('tester') +
386 api.path.exists(
387 api.path['build'].join('site_config', '.known_devices')))
388
384 yield (api.test('device_file_format_mismatch') + 389 yield (api.test('device_file_format_mismatch') +
385 properties_for('tester') + 390 properties_for('tester') +
391 api.path.exists(
392 api.path['build'].join('site_config', '.known_devices')) +
386 api.override_step_data('fix_device_file_format.read_device_file', 393 api.override_step_data('fix_device_file_format.read_device_file',
387 api.raw_io.output('["device1", "device2"]'))) 394 api.raw_io.output('["device1", "device2"]')))
388 395
389 yield (api.test('tombstones_m53') + 396 yield (api.test('tombstones_m53') +
390 properties_for('tester') + 397 properties_for('tester') +
391 api.override_step_data('get version (2)', 398 api.override_step_data('get version (2)',
392 api.raw_io.output('MAJOR=53\nMINOR=0\nBUILD=2800\nPATCH=0\n'))) 399 api.raw_io.output('MAJOR=53\nMINOR=0\nBUILD=2800\nPATCH=0\n')))
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698