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

Side by Side Diff: scripts/slave/recipe_modules/v8/test_api.py

Issue 1901103004: V8: Show build environment in failure logs (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/tools/build
Patch Set: Created 4 years, 8 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 | Annotate | Revision Log
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 # Exposes the builder and recipe configurations to GenTests in recipes. 5 # Exposes the builder and recipe configurations to GenTests in recipes.
6 6
7 import re 7 import re
8 8
9 from recipe_engine import recipe_test_api 9 from recipe_engine import recipe_test_api
10 from . import builders 10 from . import builders
(...skipping 350 matching lines...) Expand 10 before | Expand all | Expand 10 after
361 parent_buildername=parent_buildername, 361 parent_buildername=parent_buildername,
362 revision='20123', 362 revision='20123',
363 **kwargs 363 **kwargs
364 ) + 364 ) +
365 self.m.platform( 365 self.m.platform(
366 bot_config['testing']['platform'], 366 bot_config['testing']['platform'],
367 v8_config_kwargs.get('TARGET_BITS', 64), 367 v8_config_kwargs.get('TARGET_BITS', 64),
368 ) 368 )
369 ) 369 )
370 if parent_buildername: 370 if parent_buildername:
371 test += self.m.properties(parent_got_revision='54321') 371 test += self.m.properties(
372 parent_got_revision='54321',
373 build_environment={
374 'useful': 'envvars', 'from': 'the', 'parent': 'bot'},
375 )
372 if bot_config.get('enable_swarming'): 376 if bot_config.get('enable_swarming'):
373 # Assume each tester is triggered with the required hashes for all 377 # Assume each tester is triggered with the required hashes for all
374 # tests. 378 # tests.
375 test += self.m.properties( 379 test += self.m.properties(
376 parent_got_swarming_client_revision='[dummy swarming client hash]', 380 parent_got_swarming_client_revision='[dummy swarming client hash]',
377 swarm_hashes=self._make_dummy_swarm_hashes(bot_config), 381 swarm_hashes=self._make_dummy_swarm_hashes(bot_config),
378 ) 382 )
379 383
380 if mastername.startswith('tryserver'): 384 if mastername.startswith('tryserver'):
381 test += self.m.properties( 385 test += self.m.properties(
(...skipping 24 matching lines...) Expand all
406 410
407 @recipe_test_api.mod_test_data 411 @recipe_test_api.mod_test_data
408 @staticmethod 412 @staticmethod
409 def wrong_results(wrong_results): 413 def wrong_results(wrong_results):
410 return wrong_results 414 return wrong_results
411 415
412 def __call__(self, test_failures=False, wrong_results=False, flakes=False): 416 def __call__(self, test_failures=False, wrong_results=False, flakes=False):
413 return (self.test_failures(test_failures) + 417 return (self.test_failures(test_failures) +
414 self.wrong_results(wrong_results) + 418 self.wrong_results(wrong_results) +
415 self.flakes(flakes)) 419 self.flakes(flakes))
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698