diff --git a/tests/all/cli_tests.rs b/tests/all/cli_tests.rs index ac0f739584e5..9b8f0b8ba248 100644 --- a/tests/all/cli_tests.rs +++ b/tests/all/cli_tests.rs @@ -725,10 +725,10 @@ fn wasi_misaligned_pointer() -> Result<()> { } #[test] -#[ignore] // FIXME(#6811) currently is flaky and may produce no output +#[cfg_attr(not(feature = "component-model"), ignore)] fn hello_with_preview2() -> Result<()> { let wasm = build_wasm("tests/all/cli_tests/hello_wasi_snapshot1.wat")?; - let stdout = run_wasmtime(&["-Ccache=n", "--preview2", wasm.path().to_str().unwrap()])?; + let stdout = run_wasmtime(&["-Ccache=n", "-Spreview2", wasm.path().to_str().unwrap()])?; assert_eq!(stdout, "Hello, world!\n"); Ok(()) }