Skip to content

Commit 5a88794

Browse files
committed
x.py test: remove no-op --skip flag
1 parent 871df0d commit 5a88794

File tree

6 files changed

+8
-13
lines changed

6 files changed

+8
-13
lines changed

src/bootstrap/src/core/builder/tests.rs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -599,7 +599,6 @@ mod dist {
599599
pass: None,
600600
run: None,
601601
only_modified: false,
602-
skip: vec![],
603602
extra_checks: None,
604603
};
605604

@@ -664,7 +663,6 @@ mod dist {
664663
no_fail_fast: false,
665664
doc: true,
666665
no_doc: false,
667-
skip: vec![],
668666
bless: false,
669667
force_rerun: false,
670668
compare_mode: None,

src/bootstrap/src/core/config/flags.rs

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -339,9 +339,6 @@ pub enum Subcommand {
339339
#[arg(long)]
340340
/// run all tests regardless of failure
341341
no_fail_fast: bool,
342-
#[arg(long, value_name = "SUBSTRING")]
343-
/// skips tests matching SUBSTRING, if supported by test tool. May be passed multiple times
344-
skip: Vec<PathBuf>,
345342
#[arg(long, value_name = "ARGS", allow_hyphen_values(true))]
346343
/// extra arguments to be passed for the test tool being used
347344
/// (e.g. libtest, compiletest or rustdoc)

src/etc/completions/x.py.fish

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -261,7 +261,6 @@ complete -c x.py -n "__fish_seen_subcommand_from doc" -l llvm-profile-generate -
261261
complete -c x.py -n "__fish_seen_subcommand_from doc" -l enable-bolt-settings -d 'Enable BOLT link flags'
262262
complete -c x.py -n "__fish_seen_subcommand_from doc" -l skip-stage0-validation -d 'Skip stage0 compiler validation'
263263
complete -c x.py -n "__fish_seen_subcommand_from doc" -s h -l help -d 'Print help (see more with \'--help\')'
264-
complete -c x.py -n "__fish_seen_subcommand_from test" -l skip -d 'skips tests matching SUBSTRING, if supported by test tool. May be passed multiple times' -r -F
265264
complete -c x.py -n "__fish_seen_subcommand_from test" -l test-args -d 'extra arguments to be passed for the test tool being used (e.g. libtest, compiletest or rustdoc)' -r
266265
complete -c x.py -n "__fish_seen_subcommand_from test" -l rustc-args -d 'extra options to pass the compiler when running tests' -r
267266
complete -c x.py -n "__fish_seen_subcommand_from test" -l extra-checks -d 'comma-separated list of other files types to check (accepts py, py:lint, py:fmt, shell)' -r
@@ -274,6 +273,7 @@ complete -c x.py -n "__fish_seen_subcommand_from test" -l build -d 'build target
274273
complete -c x.py -n "__fish_seen_subcommand_from test" -l host -d 'host targets to build' -r -f
275274
complete -c x.py -n "__fish_seen_subcommand_from test" -l target -d 'target targets to build' -r -f
276275
complete -c x.py -n "__fish_seen_subcommand_from test" -l exclude -d 'build paths to exclude' -r -F
276+
complete -c x.py -n "__fish_seen_subcommand_from test" -l skip -d 'build paths to skip' -r -F
277277
complete -c x.py -n "__fish_seen_subcommand_from test" -l rustc-error-format -r -f
278278
complete -c x.py -n "__fish_seen_subcommand_from test" -l on-fail -d 'command to run on failure' -r -f -a "(__fish_complete_command)"
279279
complete -c x.py -n "__fish_seen_subcommand_from test" -l stage -d 'stage to build (indicates compiler to use/test, e.g., stage 0 uses the bootstrap compiler, stage 1 the stage 0 rustc artifacts, etc.)' -r -f

src/etc/completions/x.py.ps1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -333,7 +333,6 @@ Register-ArgumentCompleter -Native -CommandName 'x.py' -ScriptBlock {
333333
break
334334
}
335335
'x.py;test' {
336-
[CompletionResult]::new('--skip', 'skip', [CompletionResultType]::ParameterName, 'skips tests matching SUBSTRING, if supported by test tool. May be passed multiple times')
337336
[CompletionResult]::new('--test-args', 'test-args', [CompletionResultType]::ParameterName, 'extra arguments to be passed for the test tool being used (e.g. libtest, compiletest or rustdoc)')
338337
[CompletionResult]::new('--rustc-args', 'rustc-args', [CompletionResultType]::ParameterName, 'extra options to pass the compiler when running tests')
339338
[CompletionResult]::new('--extra-checks', 'extra-checks', [CompletionResultType]::ParameterName, 'comma-separated list of other files types to check (accepts py, py:lint, py:fmt, shell)')
@@ -346,6 +345,7 @@ Register-ArgumentCompleter -Native -CommandName 'x.py' -ScriptBlock {
346345
[CompletionResult]::new('--host', 'host', [CompletionResultType]::ParameterName, 'host targets to build')
347346
[CompletionResult]::new('--target', 'target', [CompletionResultType]::ParameterName, 'target targets to build')
348347
[CompletionResult]::new('--exclude', 'exclude', [CompletionResultType]::ParameterName, 'build paths to exclude')
348+
[CompletionResult]::new('--skip', 'skip', [CompletionResultType]::ParameterName, 'build paths to skip')
349349
[CompletionResult]::new('--rustc-error-format', 'rustc-error-format', [CompletionResultType]::ParameterName, 'rustc-error-format')
350350
[CompletionResult]::new('--on-fail', 'on-fail', [CompletionResultType]::ParameterName, 'command to run on failure')
351351
[CompletionResult]::new('--stage', 'stage', [CompletionResultType]::ParameterName, 'stage to build (indicates compiler to use/test, e.g., stage 0 uses the bootstrap compiler, stage 1 the stage 0 rustc artifacts, etc.)')

src/etc/completions/x.py.sh

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1625,16 +1625,12 @@ _x.py() {
16251625
return 0
16261626
;;
16271627
x.py__test)
1628-
opts="-v -i -j -h --no-fail-fast --skip --test-args --rustc-args --no-doc --doc --bless --extra-checks --force-rerun --only-modified --compare-mode --pass --run --rustfix-coverage --verbose --incremental --config --build-dir --build --host --target --exclude --include-default-paths --rustc-error-format --on-fail --dry-run --dump-bootstrap-shims --stage --keep-stage --keep-stage-std --src --jobs --warnings --error-format --json-output --color --bypass-bootstrap-lock --llvm-skip-rebuild --rust-profile-generate --rust-profile-use --llvm-profile-use --llvm-profile-generate --enable-bolt-settings --skip-stage0-validation --reproducible-artifact --set --help [PATHS]... [ARGS]..."
1628+
opts="-v -i -j -h --no-fail-fast --test-args --rustc-args --no-doc --doc --bless --extra-checks --force-rerun --only-modified --compare-mode --pass --run --rustfix-coverage --verbose --incremental --config --build-dir --build --host --target --exclude --skip --include-default-paths --rustc-error-format --on-fail --dry-run --dump-bootstrap-shims --stage --keep-stage --keep-stage-std --src --jobs --warnings --error-format --json-output --color --bypass-bootstrap-lock --llvm-skip-rebuild --rust-profile-generate --rust-profile-use --llvm-profile-use --llvm-profile-generate --enable-bolt-settings --skip-stage0-validation --reproducible-artifact --set --help [PATHS]... [ARGS]..."
16291629
if [[ ${cur} == -* || ${COMP_CWORD} -eq 2 ]] ; then
16301630
COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )
16311631
return 0
16321632
fi
16331633
case "${prev}" in
1634-
--skip)
1635-
COMPREPLY=($(compgen -f "${cur}"))
1636-
return 0
1637-
;;
16381634
--test-args)
16391635
COMPREPLY=($(compgen -f "${cur}"))
16401636
return 0
@@ -1683,6 +1679,10 @@ _x.py() {
16831679
COMPREPLY=($(compgen -f "${cur}"))
16841680
return 0
16851681
;;
1682+
--skip)
1683+
COMPREPLY=($(compgen -f "${cur}"))
1684+
return 0
1685+
;;
16861686
--rustc-error-format)
16871687
COMPREPLY=("${cur}")
16881688
return 0

src/etc/completions/x.py.zsh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -335,7 +335,6 @@ _arguments "${_arguments_options[@]}" \
335335
;;
336336
(test)
337337
_arguments "${_arguments_options[@]}" \
338-
'*--skip=[skips tests matching SUBSTRING, if supported by test tool. May be passed multiple times]:SUBSTRING:_files' \
339338
'*--test-args=[extra arguments to be passed for the test tool being used (e.g. libtest, compiletest or rustdoc)]:ARGS: ' \
340339
'*--rustc-args=[extra options to pass the compiler when running tests]:ARGS: ' \
341340
'--extra-checks=[comma-separated list of other files types to check (accepts py, py\:lint, py\:fmt, shell)]:EXTRA_CHECKS: ' \
@@ -348,6 +347,7 @@ _arguments "${_arguments_options[@]}" \
348347
'--host=[host targets to build]:HOST:( )' \
349348
'--target=[target targets to build]:TARGET:( )' \
350349
'*--exclude=[build paths to exclude]:PATH:_files' \
350+
'*--skip=[build paths to skip]:PATH:_files' \
351351
'--rustc-error-format=[]:RUSTC_ERROR_FORMAT:( )' \
352352
'--on-fail=[command to run on failure]:CMD:_cmdstring' \
353353
'--stage=[stage to build (indicates compiler to use/test, e.g., stage 0 uses the bootstrap compiler, stage 1 the stage 0 rustc artifacts, etc.)]:N:( )' \

0 commit comments

Comments
 (0)