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

Side by Side Diff: third_party/WebKit/Tools/Scripts/webkitpy/layout_tests/views/printing.py

Issue 2308283002: Allow seeding the random layout test order and write out seed. (Closed)
Patch Set: Add random order seed to results file. Created 4 years, 3 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 (C) 2010, 2012 Google Inc. All rights reserved. 1 # Copyright (C) 2010, 2012 Google Inc. All rights reserved.
2 # 2 #
3 # Redistribution and use in source and binary forms, with or without 3 # Redistribution and use in source and binary forms, with or without
4 # modification, are permitted provided that the following conditions are 4 # modification, are permitted provided that the following conditions are
5 # met: 5 # met:
6 # 6 #
7 # * Redistributions of source code must retain the above copyright 7 # * Redistributions of source code must retain the above copyright
8 # notice, this list of conditions and the following disclaimer. 8 # notice, this list of conditions and the following disclaimer.
9 # * Redistributions in binary form must reproduce the above 9 # * Redistributions in binary form must reproduce the above
10 # copyright notice, this list of conditions and the following disclaimer 10 # copyright notice, this list of conditions and the following disclaimer
(...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after
73 self._meter.cleanup() 73 self._meter.cleanup()
74 74
75 def __del__(self): 75 def __del__(self):
76 self.cleanup() 76 self.cleanup()
77 77
78 def print_config(self, results_directory): 78 def print_config(self, results_directory):
79 self._print_default("Using port '%s'" % self._port.name()) 79 self._print_default("Using port '%s'" % self._port.name())
80 self._print_default("Test configuration: %s" % self._port.test_configura tion()) 80 self._print_default("Test configuration: %s" % self._port.test_configura tion())
81 self._print_default("View the test results at file://%s/results.html" % results_directory) 81 self._print_default("View the test results at file://%s/results.html" % results_directory)
82 self._print_default("View the archived results dashboard at file://%s/da shboard.html" % results_directory) 82 self._print_default("View the archived results dashboard at file://%s/da shboard.html" % results_directory)
83 if self._options.order == 'random':
84 self._print_default("Using random order with seed: %d" % self._optio ns.seed)
83 85
84 # FIXME: should these options be in printing_options? 86 # FIXME: should these options be in printing_options?
85 if self._options.new_baseline: 87 if self._options.new_baseline:
86 self._print_default("Placing new baselines in %s" % self._port.basel ine_path()) 88 self._print_default("Placing new baselines in %s" % self._port.basel ine_path())
87 89
88 fs = self._port.host.filesystem 90 fs = self._port.host.filesystem
89 fallback_path = [fs.split(x)[1] for x in self._port.baseline_search_path ()] 91 fallback_path = [fs.split(x)[1] for x in self._port.baseline_search_path ()]
90 self._print_default("Baseline search path: %s -> generic" % " -> ".join( fallback_path)) 92 self._print_default("Baseline search path: %s -> generic" % " -> ".join( fallback_path))
91 93
92 self._print_default("Using %s build" % self._options.configuration) 94 self._print_default("Using %s build" % self._options.configuration)
(...skipping 340 matching lines...) Expand 10 before | Expand all | Expand 10 after
433 self._meter.write_throttled_update(msg) 435 self._meter.write_throttled_update(msg)
434 436
435 def write_update(self, msg): 437 def write_update(self, msg):
436 self._meter.write_update(msg) 438 self._meter.write_update(msg)
437 439
438 def writeln(self, msg): 440 def writeln(self, msg):
439 self._meter.writeln(msg) 441 self._meter.writeln(msg)
440 442
441 def flush(self): 443 def flush(self):
442 self._meter.flush() 444 self._meter.flush()
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698