diff options
author | Siddharth Rakesh <sidrakesh@google.com> | 2015-06-08 13:44:51 -0700 |
---|---|---|
committer | Siddharth Rakesh <sidrakesh@google.com> | 2015-06-08 13:44:51 -0700 |
commit | 39824335ea2d29ab627a8accb8e12c3bd50352ad (patch) | |
tree | 85a951745a5e14cb14e83e97deae95ed72aba489 /test/cpp/util | |
parent | 467af23d22f710d9bc41a16233cc6c95cffd6391 (diff) |
Newer version
Diffstat (limited to 'test/cpp/util')
-rw-r--r-- | test/cpp/util/benchmark_config.cc | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/test/cpp/util/benchmark_config.cc b/test/cpp/util/benchmark_config.cc index b68822436d..6b573abb50 100644 --- a/test/cpp/util/benchmark_config.cc +++ b/test/cpp/util/benchmark_config.cc @@ -39,6 +39,8 @@ DEFINE_bool(enable_log_reporter, true, DEFINE_string(access_token, "", "Authorizing JSON string for leaderboard"); +DEFINE_string(test_name, "", "Name of the test being executed"); + // In some distros, gflags is in the namespace google, and in some others, // in gflags. This hack is enabling us to find both. namespace google {} @@ -61,7 +63,7 @@ static std::shared_ptr<Reporter> InitBenchmarkReporters() { } if(!FLAGS_access_token.empty()) composite_reporter->add( - std::unique_ptr<Reporter>(new UserDatabaseReporter("UserDataReporter", FLAGS_access_token))); + std::unique_ptr<Reporter>(new UserDatabaseReporter("UserDataReporter", FLAGS_access_token, FLAGS_test_name))); return std::shared_ptr<Reporter>(composite_reporter); } |