Skip to content

Commit 43595a6

Browse files
authored
infra: rename download regression suite to sync regression suite (#757)
1 parent 70584ec commit 43595a6

File tree

2 files changed

+7
-6
lines changed

2 files changed

+7
-6
lines changed

crates/xtask/src/main.rs

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,24 +4,25 @@ use clap::{Args, Parser, Subcommand, arg};
44
use codegen::codegen;
55
use new_rule::new_lint;
66
use sync_kwlist::sync_kwlist;
7+
use sync_regression_suite::sync_regression_suite;
78

89
mod codegen;
9-
mod download_regression_tests;
1010
mod keywords;
1111
mod new_rule;
1212
mod path;
1313
mod sync_kwlist;
14+
mod sync_regression_suite;
1415

1516
#[derive(Subcommand, Debug)]
1617
enum TaskName {
17-
#[command(long_about = "Generate code for AST, SyntaxKind, and TokenSets.")]
18+
#[command(long_about = "Generate code for AST, SyntaxKind, and TokenSets")]
1819
Codegen,
1920
#[command(long_about = "Fetch the latest version of kwlist.h from Postgres")]
2021
SyncKwlist,
2122
#[command(long_about = "Create a new linter rule")]
2223
NewRule(NewRuleArgs),
23-
#[command(long_about = "Download and process regression tests from Postgres")]
24-
DownloadRegressionTests,
24+
#[command(long_about = "Fetch the latest regression suite from Postgres")]
25+
SyncRegressionSuite,
2526
}
2627

2728
#[derive(Args, Debug)]
@@ -42,8 +43,8 @@ fn main() -> Result<()> {
4243
let args = Arguments::parse();
4344
match args.task {
4445
TaskName::SyncKwlist => sync_kwlist(),
46+
TaskName::SyncRegressionSuite => sync_regression_suite(),
4547
TaskName::NewRule(args) => new_lint(args),
4648
TaskName::Codegen => codegen(),
47-
TaskName::DownloadRegressionTests => download_regression_tests::download_regression_tests(),
4849
}
4950
}

crates/xtask/src/download_regression_tests.rs renamed to crates/xtask/src/sync_regression_suite.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@ const GSET_REPLACEMENTS: &[(&str, &str)] = &[
103103
),
104104
];
105105

106-
pub(crate) fn download_regression_tests() -> Result<()> {
106+
pub(crate) fn sync_regression_suite() -> Result<()> {
107107
let temp_dir = download_regression_suite()?;
108108
transform_regression_suite(&temp_dir)?;
109109
Ok(())

0 commit comments

Comments
 (0)