Unverified Commit f86db305 authored by Michael Müller's avatar Michael Müller Committed by GitHub
Browse files

Fix failing test for Windows `master` CI (#321)

* Debug test

* More debugging

* Add debugging info

* More debugging

* More debugging

* More debugging

* More debugging

* Remove debugging code

* Restore workflow

* Restore workflow

* Test more sub-commands
parent d11e1b46
Pipeline #151029 passed with stages
in 6 minutes and 22 seconds
......@@ -56,6 +56,8 @@ jobs:
cargo run -- contract new foobar
echo "[workspace]" >> foobar/Cargo.toml
cargo run -- contract build --manifest-path=foobar/Cargo.toml
cargo run -- contract check --manifest-path=foobar/Cargo.toml
cargo run -- contract test --manifest-path=foobar/Cargo.toml
- name: Run tests on {{ matrix.platform }}-${{ matrix.toolchain }}
# The tests take a long time in the GitHub Actions runner (~30 mins),
......
......@@ -201,7 +201,7 @@ fn exec_cargo_for_wasm_target(
// Currently will override user defined RUSTFLAGS from .cargo/config. See https://github.com/paritytech/cargo-contract/issues/98.
std::env::set_var(
"RUSTFLAGS",
"-C link-arg=-z -C link-arg=stack-size=65536 -C link-arg=--import-memory",
"-C link-arg=-zstack-size=65536 -C link-arg=--import-memory",
);
let cargo_build = |manifest_path: &ManifestPath| {
......@@ -940,8 +940,13 @@ mod tests_ci_only {
// then
assert!(res.is_err());
assert!(format!("{:?}", res)
.starts_with("Err(Your wasm-opt version is 98, but we require a version >= 99."));
assert!(
format!("{:?}", res).starts_with(
"Err(Your wasm-opt version is 98, but we require a version >= 99."
),
"Expected a different output, found {:?}",
res
);
Ok(())
})
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment