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

Unified Diff: chrome/test/browser/browser_test_runner.cc

Issue 155112: Browser tests now support the run disabled tests flag (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 11 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/test/browser/browser_test_launcher_out_of_proc.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/test/browser/browser_test_runner.cc
===================================================================
--- chrome/test/browser/browser_test_runner.cc (revision 19954)
+++ chrome/test/browser/browser_test_runner.cc (working copy)
@@ -15,6 +15,8 @@
namespace {
const wchar_t* const kGTestListTestsFlag = L"gtest_list_tests";
+const wchar_t* const kGTestRunDisabledTestsFlag =
+ L"gtest_also_run_disabled_tests";
// Retrieves the list of tests to run by running gtest with the
// --gtest_list_tests flag in a forked process and parsing its output.
@@ -58,7 +60,8 @@
continue;
}
- if (line.find("DISABLED") != std::string::npos)
+ if (!command_line.HasSwitch(kGTestRunDisabledTestsFlag) &&
+ line.find("DISABLED") != std::string::npos)
continue; // Skip disabled tests.
// We are dealing with a test.
« no previous file with comments | « chrome/test/browser/browser_test_launcher_out_of_proc.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698