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

Unified Diff: content/test/test_launcher.cc

Issue 10441103: Make sharding_supervisor.py run InProcessBrowserTest.Empty (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Use --warmup (And sync) Created 8 years, 6 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 side-by-side diff with in-line comments
Download patch
Index: content/test/test_launcher.cc
===================================================================
--- content/test/test_launcher.cc (revision 144098)
+++ content/test/test_launcher.cc (working copy)
@@ -574,6 +574,8 @@
const char kHelpFlag[] = "help";
+const char kWarmupFlag[] = "warmup";
+
TestLauncherDelegate::~TestLauncherDelegate() {
}
@@ -635,15 +637,16 @@
// from disk may be slow on a busy bot, and can easily exceed the default
// timeout causing flaky test failures. Use an empty test that only starts
// and closes a browser with a long timeout to avoid those problems.
- // NOTE: we don't do this when specifying a filter because this slows down the
+ // NOTE: We don't do this when specifying a filter because this slows down the
// common case of running one test locally, and also on trybots when sharding
// as this one test runs ~200 times and wastes a few minutes.
- if (!should_shard && !command_line->HasSwitch(kGTestFilterFlag)) {
+ bool warmup = command_line->HasSwitch(kWarmupFlag);
+ if (warmup || (!should_shard && !command_line->HasSwitch(kGTestFilterFlag))) {
Paweł Hajdan Jr. 2012/06/27 07:48:52 nit: For consistency, please add bool has_filter
mmenke 2012/06/27 16:14:48 Done.
exit_code = RunTest(launcher_delegate,
kEmptyTestName,
TestTimeouts::large_test_timeout_ms(),
NULL);
- if (exit_code != 0)
+ if (exit_code != 0 || warmup)
return exit_code;
}

Powered by Google App Engine
This is Rietveld 408576698