mirror of
https://github.com/carbon-language/carbon-lang.git
synced 2026-09-24 22:02:23 +01:00
Change manifest passing to drop the flag outside explorer (#5025)
This commit is contained in:
@@ -51,8 +51,6 @@ ABSL_FLAG(std::vector<std::string>, file_tests, {},
|
||||
"A comma-separated list of repo-relative names of test files. "
|
||||
"Similar to and overrides `--gtest_filter`, but doesn't require the "
|
||||
"test class name to be known.");
|
||||
ABSL_FLAG(std::string, test_targets_file, "",
|
||||
"A path to a file containing repo-relative names of test files.");
|
||||
ABSL_FLAG(bool, autoupdate, false,
|
||||
"Instead of verifying files match test output, autoupdate files "
|
||||
"based on test output.");
|
||||
@@ -300,11 +298,9 @@ static auto RegisterTests(FileTestFactory* test_factory,
|
||||
llvm::StringRef exe_path,
|
||||
llvm::SmallVectorImpl<FileTestInfo>& tests)
|
||||
-> ErrorOr<Success> {
|
||||
if (absl::GetFlag(FLAGS_test_targets_file).empty()) {
|
||||
return Error("Missing --test_targets_file.");
|
||||
}
|
||||
GetFileTestManifestPath();
|
||||
CARBON_ASSIGN_OR_RETURN(auto test_manifest,
|
||||
ReadFile(absl::GetFlag(FLAGS_test_targets_file)));
|
||||
ReadFile(GetFileTestManifestPath()));
|
||||
|
||||
// Prepare the vector first, so that the location of entries won't change.
|
||||
for (const auto& test_name :
|
||||
|
||||
Reference in New Issue
Block a user