Make vie/voe_auto_test accept non-supported flags without error.
With the switch recipes on the buildbots and the deprecation of the custom script at https://code.google.com/p/webrtc/source/browse/trunk/webrtc/test/buildbot_tests.py these tests will start failing when Chromium's runtest.py is passing --brave-new-test-launcher --test-launcher-bot-mode to the test. A similar change was made for most of WebRTC's tests (that depends on the test_support_main target) in https://webrtc-codereview.appspot.com/2222005 BUG=chromium:346198 TEST=Successfully launched the executables on Linux and Mac using: out/Release/voe_auto_test --brave-new-test-launcher --test-launcher-bot-mode --automated --test-launcher-summary-output=/tmp/tmpwhx6Zz out/Release/vie_auto_test --brave-new-test-launcher --test-launcher-bot-mode --automated --capture_test_ensure_resolution_alignment_in_capture_device=false --test-launcher-summary-output=/tmp/tmpwhx6Zz R=henrika@webrtc.org, mflodman@webrtc.org Review URL: https://webrtc-codereview.appspot.com/13499004 git-svn-id: http://webrtc.googlecode.com/svn/trunk@6135 4adac7df-926f-26a2-2b94-8c16560cd09d
This commit is contained in:
parent
cd846dd374
commit
98c76a120d
@ -43,6 +43,9 @@ int ViEAutoTestMain::RunTests(int argc, char** argv) {
|
||||
webrtc::test::SetExecutablePath(argv[0]);
|
||||
// Initialize the testing framework.
|
||||
testing::InitGoogleTest(&argc, argv);
|
||||
// AllowCommandLineParsing allows us to ignore flags passed on to us by
|
||||
// Chromium build bots without having to explicitly disable them.
|
||||
google::AllowCommandLineReparsing();
|
||||
// Parse remaining flags:
|
||||
google::ParseCommandLineFlags(&argc, &argv, true);
|
||||
|
||||
|
@ -341,6 +341,9 @@ int main(int argc, char** argv) {
|
||||
// This function and RunInAutomatedMode is defined in automated_mode.cc
|
||||
// to avoid macro clashes with googletest (for instance ASSERT_TRUE).
|
||||
InitializeGoogleTest(&argc, argv);
|
||||
// AllowCommandLineParsing allows us to ignore flags passed on to us by
|
||||
// Chromium build bots without having to explicitly disable them.
|
||||
google::AllowCommandLineReparsing();
|
||||
google::ParseCommandLineFlags(&argc, &argv, true);
|
||||
|
||||
if (FLAGS_automated) {
|
||||
|
Loading…
Reference in New Issue
Block a user