You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Rollup merge of rust-lang#154587 - Ayuse:compiletest-quiet-run-make, r=jieyouxu
Add --verbose-run-make-subprocess-output flag to suppress verbose run-make output for passing tests
- Adds `--verbose-run-make-subprocess-output` flag to `./x test` and compiletest
- `./x test --no-capture --verbose-run-make-subprocess-output=false` suppresses verbose subprocess output for passing run-make tests
- Failed tests always print their output regardless of `--verbose-run-make-subprocess-output`
- Default behavior (verbose) is unchanged
This addresses the request from @bjorn3 which needs `--no-capture` (due to `panic=abort`) but doesn't want output dumped for every passing test.
Helps with rust-lang#154069
## Test plan
- [x] `./x test tests/run-make/bare-outfile --no-capture --force-rerun` — verbose output for passing test
- [x] `./x test tests/run-make/bare-outfile --no-capture --verbose-run-make-subprocess-output=false --force-rerun` — no verbose output for passing test
- [x] Failing test still dumps output with `--verbose-run-make-subprocess-output=false`
summary:"`x.py` stopped accepting partial argument names. Use full names to avoid errors.",
623
623
},
624
+
ChangeInfo{
625
+
change_id:154587,
626
+
severity:ChangeSeverity::Info,
627
+
summary:"New `--verbose-run-make-subprocess-output` flag for `x.py test` (defaults to true). Set `--verbose-run-make-subprocess-output=false` to suppress verbose subprocess output for passing run-make tests when using `--no-capture`.",
complete-c x -n"__fish_x_using_subcommand test"-l compare-mode -d'mode describing what file the actual ui output will be compared to'-r
421
421
complete-c x -n"__fish_x_using_subcommand test"-l pass -d'force {check,build,run}-pass tests to this mode'-r
422
422
complete-c x -n"__fish_x_using_subcommand test"-l run -d'whether to execute run-* tests'-r
423
+
complete-c x -n"__fish_x_using_subcommand test"-l verbose-run-make-subprocess-output -d'whether to show verbose subprocess output for run-make tests; set to false to suppress output for passing tests (e.g. for cg_clif with --no-capture)'-r-f-a"{true\t'',false\t''}"
423
424
complete-c x -n"__fish_x_using_subcommand test"-ltest-codegen-backend -d'Use a different codegen backend when running tests'-r
424
425
complete-c x -n"__fish_x_using_subcommand test"-l config -d'TOML configuration file for build'-r-F
425
426
complete-c x -n"__fish_x_using_subcommand test"-l build-dir -d'Build directory, overrides `build.build-dir` in `bootstrap.toml`'-r-f-a"(__fish_complete_directories)"
complete-c x -n"__fish_x_using_subcommand t"-l compare-mode -d'mode describing what file the actual ui output will be compared to'-r
474
475
complete-c x -n"__fish_x_using_subcommand t"-l pass -d'force {check,build,run}-pass tests to this mode'-r
475
476
complete-c x -n"__fish_x_using_subcommand t"-l run -d'whether to execute run-* tests'-r
477
+
complete-c x -n"__fish_x_using_subcommand t"-l verbose-run-make-subprocess-output -d'whether to show verbose subprocess output for run-make tests; set to false to suppress output for passing tests (e.g. for cg_clif with --no-capture)'-r-f-a"{true\t'',false\t''}"
476
478
complete-c x -n"__fish_x_using_subcommand t"-ltest-codegen-backend -d'Use a different codegen backend when running tests'-r
477
479
complete-c x -n"__fish_x_using_subcommand t"-l config -d'TOML configuration file for build'-r-F
478
480
complete-c x -n"__fish_x_using_subcommand t"-l build-dir -d'Build directory, overrides `build.build-dir` in `bootstrap.toml`'-r-f-a"(__fish_complete_directories)"
[CompletionResult]::new('--compare-mode','--compare-mode', [CompletionResultType]::ParameterName,'mode describing what file the actual ui output will be compared to')
488
488
[CompletionResult]::new('--pass','--pass', [CompletionResultType]::ParameterName,'force {check,build,run}-pass tests to this mode')
489
489
[CompletionResult]::new('--run','--run', [CompletionResultType]::ParameterName,'whether to execute run-* tests')
490
+
[CompletionResult]::new('--verbose-run-make-subprocess-output','--verbose-run-make-subprocess-output', [CompletionResultType]::ParameterName,'whether to show verbose subprocess output for run-make tests; set to false to suppress output for passing tests (e.g. for cg_clif with --no-capture)')
490
491
[CompletionResult]::new('--test-codegen-backend','--test-codegen-backend', [CompletionResultType]::ParameterName,'Use a different codegen backend when running tests')
491
492
[CompletionResult]::new('--config','--config', [CompletionResultType]::ParameterName,'TOML configuration file for build')
492
493
[CompletionResult]::new('--build-dir','--build-dir', [CompletionResultType]::ParameterName,'Build directory, overrides `build.build-dir` in `bootstrap.toml`')
[CompletionResult]::new('--compare-mode','--compare-mode', [CompletionResultType]::ParameterName,'mode describing what file the actual ui output will be compared to')
548
549
[CompletionResult]::new('--pass','--pass', [CompletionResultType]::ParameterName,'force {check,build,run}-pass tests to this mode')
549
550
[CompletionResult]::new('--run','--run', [CompletionResultType]::ParameterName,'whether to execute run-* tests')
551
+
[CompletionResult]::new('--verbose-run-make-subprocess-output','--verbose-run-make-subprocess-output', [CompletionResultType]::ParameterName,'whether to show verbose subprocess output for run-make tests; set to false to suppress output for passing tests (e.g. for cg_clif with --no-capture)')
550
552
[CompletionResult]::new('--test-codegen-backend','--test-codegen-backend', [CompletionResultType]::ParameterName,'Use a different codegen backend when running tests')
551
553
[CompletionResult]::new('--config','--config', [CompletionResultType]::ParameterName,'TOML configuration file for build')
552
554
[CompletionResult]::new('--build-dir','--build-dir', [CompletionResultType]::ParameterName,'Build directory, overrides `build.build-dir` in `bootstrap.toml`')
complete-c x.py -n"__fish_x.py_using_subcommand test"-l compare-mode -d'mode describing what file the actual ui output will be compared to'-r
421
421
complete-c x.py -n"__fish_x.py_using_subcommand test"-l pass -d'force {check,build,run}-pass tests to this mode'-r
422
422
complete-c x.py -n"__fish_x.py_using_subcommand test"-l run -d'whether to execute run-* tests'-r
423
+
complete-c x.py -n"__fish_x.py_using_subcommand test"-l verbose-run-make-subprocess-output -d'whether to show verbose subprocess output for run-make tests; set to false to suppress output for passing tests (e.g. for cg_clif with --no-capture)'-r-f-a"{true\t'',false\t''}"
423
424
complete-c x.py -n"__fish_x.py_using_subcommand test"-ltest-codegen-backend -d'Use a different codegen backend when running tests'-r
424
425
complete-c x.py -n"__fish_x.py_using_subcommand test"-l config -d'TOML configuration file for build'-r-F
complete-c x.py -n"__fish_x.py_using_subcommand t"-l compare-mode -d'mode describing what file the actual ui output will be compared to'-r
474
475
complete-c x.py -n"__fish_x.py_using_subcommand t"-l pass -d'force {check,build,run}-pass tests to this mode'-r
475
476
complete-c x.py -n"__fish_x.py_using_subcommand t"-l run -d'whether to execute run-* tests'-r
477
+
complete-c x.py -n"__fish_x.py_using_subcommand t"-l verbose-run-make-subprocess-output -d'whether to show verbose subprocess output for run-make tests; set to false to suppress output for passing tests (e.g. for cg_clif with --no-capture)'-r-f-a"{true\t'',false\t''}"
476
478
complete-c x.py -n"__fish_x.py_using_subcommand t"-ltest-codegen-backend -d'Use a different codegen backend when running tests'-r
477
479
complete-c x.py -n"__fish_x.py_using_subcommand t"-l config -d'TOML configuration file for build'-r-F
[CompletionResult]::new('--compare-mode','--compare-mode', [CompletionResultType]::ParameterName,'mode describing what file the actual ui output will be compared to')
488
488
[CompletionResult]::new('--pass','--pass', [CompletionResultType]::ParameterName,'force {check,build,run}-pass tests to this mode')
489
489
[CompletionResult]::new('--run','--run', [CompletionResultType]::ParameterName,'whether to execute run-* tests')
490
+
[CompletionResult]::new('--verbose-run-make-subprocess-output','--verbose-run-make-subprocess-output', [CompletionResultType]::ParameterName,'whether to show verbose subprocess output for run-make tests; set to false to suppress output for passing tests (e.g. for cg_clif with --no-capture)')
490
491
[CompletionResult]::new('--test-codegen-backend','--test-codegen-backend', [CompletionResultType]::ParameterName,'Use a different codegen backend when running tests')
491
492
[CompletionResult]::new('--config','--config', [CompletionResultType]::ParameterName,'TOML configuration file for build')
492
493
[CompletionResult]::new('--build-dir','--build-dir', [CompletionResultType]::ParameterName,'Build directory, overrides `build.build-dir` in `bootstrap.toml`')
[CompletionResult]::new('--compare-mode','--compare-mode', [CompletionResultType]::ParameterName,'mode describing what file the actual ui output will be compared to')
548
549
[CompletionResult]::new('--pass','--pass', [CompletionResultType]::ParameterName,'force {check,build,run}-pass tests to this mode')
549
550
[CompletionResult]::new('--run','--run', [CompletionResultType]::ParameterName,'whether to execute run-* tests')
551
+
[CompletionResult]::new('--verbose-run-make-subprocess-output','--verbose-run-make-subprocess-output', [CompletionResultType]::ParameterName,'whether to show verbose subprocess output for run-make tests; set to false to suppress output for passing tests (e.g. for cg_clif with --no-capture)')
550
552
[CompletionResult]::new('--test-codegen-backend','--test-codegen-backend', [CompletionResultType]::ParameterName,'Use a different codegen backend when running tests')
551
553
[CompletionResult]::new('--config','--config', [CompletionResultType]::ParameterName,'TOML configuration file for build')
552
554
[CompletionResult]::new('--build-dir','--build-dir', [CompletionResultType]::ParameterName,'Build directory, overrides `build.build-dir` in `bootstrap.toml`')
'--compare-mode=[mode describing what file the actual ui output will be compared to]:COMPARE MODE:_default' \
489
489
'--pass=[force {check,build,run}-pass tests to this mode]:check | build | run:_default' \
490
490
'--run=[whether to execute run-* tests]:auto | always | never:_default' \
491
+
'--verbose-run-make-subprocess-output=[whether to show verbose subprocess output for run-make tests; set to false to suppress output for passing tests (e.g. for cg_clif with --no-capture)]' \
491
492
'--test-codegen-backend=[Use a different codegen backend when running tests]:TEST_CODEGEN_BACKEND:_default' \
492
493
'--config=[TOML configuration file for build]:FILE:_files' \
493
494
'--build-dir=[Build directory, overrides \`build.build-dir\` in \`bootstrap.toml\`]:DIR:_files -/' \
'--compare-mode=[mode describing what file the actual ui output will be compared to]:COMPARE MODE:_default' \
551
552
'--pass=[force {check,build,run}-pass tests to this mode]:check | build | run:_default' \
552
553
'--run=[whether to execute run-* tests]:auto | always | never:_default' \
554
+
'--verbose-run-make-subprocess-output=[whether to show verbose subprocess output for run-make tests; set to false to suppress output for passing tests (e.g. for cg_clif with --no-capture)]' \
553
555
'--test-codegen-backend=[Use a different codegen backend when running tests]:TEST_CODEGEN_BACKEND:_default' \
554
556
'--config=[TOML configuration file for build]:FILE:_files' \
555
557
'--build-dir=[Build directory, overrides \`build.build-dir\` in \`bootstrap.toml\`]:DIR:_files -/' \
0 commit comments