Changing command line flag for scenario logs root directory.

There was a name collision with downstream test frameworks.

Bug: webrtc:9510
Change-Id: I7e37a8a54701ef4a47c687aec51f37523759f1b2
Reviewed-on: https://webrtc-review.googlesource.com/c/123044
Reviewed-by: Christoffer Rodbro <crodbro@webrtc.org>
Commit-Queue: Sebastian Jansson <srte@webrtc.org>
Cr-Commit-Position: refs/heads/master@{#26683}
This commit is contained in:
Sebastian Jansson 2019-02-14 11:11:15 +01:00 committed by Commit Bot
parent dac03d9bb0
commit d00045ef0e

View File

@ -21,7 +21,7 @@
#include "test/testsupport/file_utils.h"
WEBRTC_DEFINE_bool(scenario_logs, false, "Save logs from scenario framework.");
WEBRTC_DEFINE_string(out_root,
WEBRTC_DEFINE_string(scenario_logs_root,
"",
"Output root path, based on project root if unset.");
@ -32,7 +32,7 @@ int64_t kMicrosPerSec = 1000000;
std::unique_ptr<FileLogWriterFactory> GetScenarioLogManager(
std::string file_name) {
if (FLAG_scenario_logs && !file_name.empty()) {
std::string output_root = FLAG_out_root;
std::string output_root = FLAG_scenario_logs_root;
if (output_root.empty())
output_root = OutputPath() + "output_data/";