1
Fork 0

Give a better error message when x.py uses the wrong stage for CI

This commit is contained in:
Joshua Nelson 2020-09-16 12:00:56 -04:00
parent 5fae56971d
commit be37265708

View file

@ -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 { .. }