Skip to content

Commit 88a8147

Browse files
test(deno_webgpu): add --release to cargo xtask cts (#8053)
1 parent 910143d commit 88a8147

File tree

1 file changed

+9
-3
lines changed

1 file changed

+9
-3
lines changed

xtask/src/cts.rs

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,7 @@ struct TestLine {
6363
pub fn run_cts(shell: Shell, mut args: Arguments) -> anyhow::Result<()> {
6464
let skip_checkout = args.contains("--skip-checkout");
6565
let llvm_cov = args.contains("--llvm-cov");
66+
let release = args.contains("--release");
6667
let running_on_backend = args.opt_value_from_str::<_, String>("--backend")?;
6768

6869
if running_on_backend.is_none() {
@@ -220,13 +221,18 @@ pub fn run_cts(shell: Shell, mut args: Arguments) -> anyhow::Result<()> {
220221
}
221222

222223
log::info!("Running {}", test.selector.to_string_lossy());
223-
shell
224+
let mut cmd = shell
224225
.cmd("cargo")
225226
.args(run_flags)
226227
.args(["--manifest-path".as_ref(), wgpu_cargo_toml.as_os_str()])
227228
.args(["-p", "cts_runner"])
228-
.args(["--bin", "cts_runner"])
229-
.args(["--", "./tools/run_deno", "--verbose"])
229+
.args(["--bin", "cts_runner"]);
230+
231+
if release {
232+
cmd = cmd.arg("--release")
233+
}
234+
235+
cmd.args(["--", "./tools/run_deno", "--verbose"])
230236
.args([&test.selector])
231237
.run()
232238
.context("CTS failed")?;

0 commit comments

Comments
 (0)