Give a better error message when x.py uses the wrong stage for CI
This commit is contained in:
parent
5fae56971d
commit
be37265708
1 changed files with 7 additions and 1 deletions
|
@ -616,7 +616,13 @@ impl Config {
|
|||
| Subcommand::Build { .. }
|
||||
| Subcommand::Bench { .. }
|
||||
| Subcommand::Dist { .. }
|
||||
| Subcommand::Install { .. } => assert_eq!(config.stage, 2),
|
||||
| Subcommand::Install { .. } => {
|
||||
assert_eq!(
|
||||
config.stage, 2,
|
||||
"x.py should be run with `--stage 2` on CI, but was run with `--stage {}`",
|
||||
config.stage,
|
||||
);
|
||||
}
|
||||
Subcommand::Clean { .. }
|
||||
| Subcommand::Check { .. }
|
||||
| Subcommand::Clippy { .. }
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue