mirror of
https://github.com/gfx-rs/wgpu.git
synced 2025-12-08 21:26:17 +00:00
Improve cargo-nextext Configuration (#7131)
This commit is contained in:
parent
03a01df3cb
commit
ab38df24ba
@ -2,6 +2,8 @@
|
|||||||
# terminate them to prevent infinite run-on.
|
# terminate them to prevent infinite run-on.
|
||||||
[profile.default]
|
[profile.default]
|
||||||
slow-timeout = { period = "45s", terminate-after = 2 }
|
slow-timeout = { period = "45s", terminate-after = 2 }
|
||||||
|
fail-fast = false
|
||||||
|
retries = 0
|
||||||
|
|
||||||
# Use two threads for tests with "2 threads" in their name
|
# Use two threads for tests with "2 threads" in their name
|
||||||
[[profile.default.overrides]]
|
[[profile.default.overrides]]
|
||||||
|
|||||||
@ -29,6 +29,8 @@ Commands:
|
|||||||
--list List all of the tests and their executables without running them
|
--list List all of the tests and their executables without running them
|
||||||
--retries Number of times to retry failing tests
|
--retries Number of times to retry failing tests
|
||||||
|
|
||||||
|
All extra arguments will be forwarded to cargo-nextest (NOT wgpu-info)
|
||||||
|
|
||||||
vendor-web-sys
|
vendor-web-sys
|
||||||
Re-vendor the WebGPU web-sys bindings.
|
Re-vendor the WebGPU web-sys bindings.
|
||||||
|
|
||||||
|
|||||||
@ -5,10 +5,7 @@ use xshell::Shell;
|
|||||||
pub fn run_tests(shell: Shell, mut args: Arguments) -> anyhow::Result<()> {
|
pub fn run_tests(shell: Shell, mut args: Arguments) -> anyhow::Result<()> {
|
||||||
let llvm_cov = args.contains("--llvm-cov");
|
let llvm_cov = args.contains("--llvm-cov");
|
||||||
let list = args.contains("--list");
|
let list = args.contains("--list");
|
||||||
let retries = args
|
// Retries handled by cargo nextest natively
|
||||||
.opt_value_from_str("--retries")?
|
|
||||||
.unwrap_or(0_u32)
|
|
||||||
.to_string();
|
|
||||||
|
|
||||||
// These needs to match the command in "run wgpu-info" in `.github/workflows/ci.yml`
|
// These needs to match the command in "run wgpu-info" in `.github/workflows/ci.yml`
|
||||||
let llvm_cov_flags: &[_] = if llvm_cov {
|
let llvm_cov_flags: &[_] = if llvm_cov {
|
||||||
@ -71,14 +68,7 @@ pub fn run_tests(shell: Shell, mut args: Arguments) -> anyhow::Result<()> {
|
|||||||
shell
|
shell
|
||||||
.cmd("cargo")
|
.cmd("cargo")
|
||||||
.args(llvm_cov_nextest_flags)
|
.args(llvm_cov_nextest_flags)
|
||||||
.args([
|
.args(["--benches", "--tests", "--all-features"])
|
||||||
"--benches",
|
|
||||||
"--tests",
|
|
||||||
"--no-fail-fast",
|
|
||||||
"--all-features",
|
|
||||||
"--retries",
|
|
||||||
&retries,
|
|
||||||
])
|
|
||||||
.args(args.finish())
|
.args(args.finish())
|
||||||
.quiet()
|
.quiet()
|
||||||
.run()
|
.run()
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user