Skip to content

Commit

Permalink
tests/run-make: update tests to use new API
Browse files Browse the repository at this point in the history
  • Loading branch information
jieyouxu committed Jun 11, 2024
1 parent 54e7044 commit ca95f78
Show file tree
Hide file tree
Showing 8 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion tests/run-make/compiler-builtins/rmake.rs
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ fn main() {
let rustc = env_var("RUSTC");
let bootstrap_cargo = env_var("BOOTSTRAP_CARGO");
let mut cmd = cmd(bootstrap_cargo);
cmd.args([
cmd.args(&[
"build",
"--manifest-path",
manifest_path.to_str().unwrap(),
Expand Down
2 changes: 1 addition & 1 deletion tests/run-make/rustdoc-map-file/rmake.rs
Original file line number Diff line number Diff line change
Expand Up @@ -9,5 +9,5 @@ fn main() {
.output(&out_dir)
.run();
// FIXME (GuillaumeGomez): Port the python script to Rust as well.
assert!(python_command().arg("validate_json.py").arg(&out_dir).status().unwrap().success());
python_command().arg("validate_json.py").arg(&out_dir).run();
}
2 changes: 1 addition & 1 deletion tests/run-make/rustdoc-scrape-examples-macros/rmake.rs
Original file line number Diff line number Diff line change
Expand Up @@ -56,5 +56,5 @@ fn main() {
.arg(&ex_dir)
.run();

assert!(htmldocck().arg(out_dir).arg("src/lib.rs").status().unwrap().success());
htmldocck().arg(out_dir).arg("src/lib.rs").run();
}
2 changes: 1 addition & 1 deletion tests/run-make/rustdoc-scrape-examples-remap/scrape.rs
Original file line number Diff line number Diff line change
Expand Up @@ -45,5 +45,5 @@ pub fn scrape(extra_args: &[&str]) {
}
rustdoc.run();

assert!(htmldocck().arg(out_dir).arg("src/lib.rs").status().unwrap().success());
htmldocck().arg(out_dir).arg("src/lib.rs").run();
}
2 changes: 1 addition & 1 deletion tests/run-make/rustdoc-themes/rmake.rs
Original file line number Diff line number Diff line change
Expand Up @@ -28,5 +28,5 @@ fn main() {
std::fs::write(&test_css, test_content).unwrap();

rustdoc().output(&out_dir).input("foo.rs").arg("--theme").arg(&test_css).run();
assert!(htmldocck().arg(out_dir).arg("foo.rs").status().unwrap().success());
htmldocck().arg(out_dir).arg("foo.rs").run();
}
2 changes: 1 addition & 1 deletion tests/run-make/rustdoc-with-out-dir-option/rmake.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,5 @@ use run_make_support::{htmldocck, rustdoc};
fn main() {
let out_dir = "rustdoc";
rustdoc().input("src/lib.rs").crate_name("foobar").crate_type("lib").output(&out_dir).run();
assert!(htmldocck().arg(out_dir).arg("src/lib.rs").status().unwrap().success());
htmldocck().arg(out_dir).arg("src/lib.rs").run();
}
2 changes: 1 addition & 1 deletion tests/run-make/rustdoc-with-output-option/rmake.rs
Original file line number Diff line number Diff line change
Expand Up @@ -12,5 +12,5 @@ fn main() {
.arg(&out_dir)
.run();

assert!(htmldocck().arg(out_dir).arg("src/lib.rs").status().unwrap().success());
htmldocck().arg(out_dir).arg("src/lib.rs").run();
}
2 changes: 1 addition & 1 deletion tests/run-make/rustdoc-with-short-out-dir-option/rmake.rs
Original file line number Diff line number Diff line change
Expand Up @@ -12,5 +12,5 @@ fn main() {
.arg(&out_dir)
.run();

assert!(htmldocck().arg(out_dir).arg("src/lib.rs").status().unwrap().success());
htmldocck().arg(out_dir).arg("src/lib.rs").run();
}

0 comments on commit ca95f78

Please sign in to comment.