Change manifest passing to drop the flag outside explorer (#5025)

This commit is contained in:
Jon Ross-Perkins
2025-02-27 00:01:09 +00:00
committed by GitHub
parent 977578add1
commit 46752eeed6
6 changed files with 39 additions and 8 deletions
+7
View File
@@ -12,6 +12,8 @@ ABSL_FLAG(bool, trace, false,
"Set to true to run tests with tracing enabled, even if they don't "
"otherwise specify it. This does not result in checking trace output "
"contents; it essentially only verifies there's not a crash bug.");
ABSL_FLAG(std::string, explorer_test_targets_file, "",
"A path to a file containing repo-relative names of test files.");
namespace Carbon::Testing {
namespace {
@@ -112,6 +114,11 @@ class ExplorerFileTest : public FileTestBase {
} // namespace
// Explorer uses a non-standard approach to getting the manifest path.
auto GetFileTestManifestPath() -> std::filesystem::path {
return absl::GetFlag(FLAGS_explorer_test_targets_file);
}
CARBON_FILE_TEST_FACTORY(ExplorerFileTest)
} // namespace Carbon::Testing