Skip to content

Commit

Permalink
Undo installing wapm automatically
Browse files Browse the repository at this point in the history
  • Loading branch information
fschutt committed Nov 24, 2022
1 parent b5c4952 commit 3d4c34b
Showing 1 changed file with 1 addition and 26 deletions.
27 changes: 1 addition & 26 deletions tests/integration/cli/tests/run.rs
Original file line number Diff line number Diff line change
Expand Up @@ -549,37 +549,12 @@ fn run_no_start_wasm_report_error() -> anyhow::Result<()> {

// Test that changes to wapm run don't break wasmer run
#[test]
fn test_wapm_run_works() -> anyhow::Result<()> {
fn test_wasmer_run_complex_url() -> anyhow::Result<()> {
// only run this test on the CI, not locally
if std::env::var("GITHUB_TOKEN").is_err() {
return Ok(());
}

if Command::new("wapm").arg("--version").output().is_err()
|| !Command::new("wapm")
.arg("--version")
.output()
.unwrap()
.status
.success()
{
let _ = Command::new("cargo")
.arg("install")
.arg("wapm-cli")
.output();
}

if Command::new("wapm").arg("--version").output().is_err()
|| !Command::new("wapm")
.arg("--version")
.output()
.unwrap()
.status
.success()
{
println!("warning: wapm is not installed even after running cargo install wapm-cli");
}

let temp_dir = tempfile::tempdir()?;
let path = temp_dir.path();
let output = Command::new("wapm")
Expand Down

0 comments on commit 3d4c34b

Please sign in to comment.