summaryrefslogtreecommitdiffstats
path: root/webkit
diff options
context:
space:
mode:
authorojan@google.com <ojan@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2009-04-07 21:01:37 +0000
committerojan@google.com <ojan@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2009-04-07 21:01:37 +0000
commit86da65dfde60bfd08a0494e82797d8796fef02fe (patch)
treea3678047c6794aafd744b0df35d7348e6351608e /webkit
parentc6e672e847e080826800d92583f1d57405977819 (diff)
downloadchromium_src-86da65dfde60bfd08a0494e82797d8796fef02fe.zip
chromium_src-86da65dfde60bfd08a0494e82797d8796fef02fe.tar.gz
chromium_src-86da65dfde60bfd08a0494e82797d8796fef02fe.tar.bz2
Use an in-memory cache when running layout tests.
This reduces flakyness when running them in parallel. Review URL: http://codereview.chromium.org/63082 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@13280 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'webkit')
-rw-r--r--webkit/tools/test_shell/test_shell_main.cc5
1 files changed, 4 insertions, 1 deletions
diff --git a/webkit/tools/test_shell/test_shell_main.cc b/webkit/tools/test_shell/test_shell_main.cc
index 0b096a6a..60ea705 100644
--- a/webkit/tools/test_shell/test_shell_main.cc
+++ b/webkit/tools/test_shell/test_shell_main.cc
@@ -125,7 +125,10 @@ int main(int argc, char* argv[]) {
std::wstring cache_path =
parsed_command_line.GetSwitchValue(test_shell::kCacheDir);
- if (cache_path.empty()) {
+ // If the cache_path is empty and it's layout_test_mode, leave it empty
+ // so we use an in-memory cache. This makes running multiple test_shells
+ // in parallel less flaky.
+ if (cache_path.empty() && !layout_test_mode) {
PathService::Get(base::DIR_EXE, &cache_path);
file_util::AppendToPath(&cache_path, L"cache");
}