Skip to content

A lightweight WebAssembly runtime that is fast, secure, and standards-compliant

Suggest updating submodules on wast test dir registration failure (#13504)

Nick Fitzgerald82a7bffffb57
diff --git a/crates/test-util/src/wast.rs b/crates/test-util/src/wast.rs
index bfe79aff88..9c6914b84f 100644
--- a/crates/test-util/src/wast.rs
+++ b/crates/test-util/src/wast.rs
@@ -40,6 +40,7 @@ pub fn find_tests(root: &Path) -> Result<Vec<WastTest>> {
&spec_tests,
&FindConfig::Infer(spec_test_config),
)
+ .context("Do you need to `git submodule update --init`?")
.with_context(|| format!("failed to add tests from `{}`", spec_tests.display()))?;
let misc_tests = root.join("tests/misc_testsuite");
@@ -52,6 +53,7 @@ pub fn find_tests(root: &Path) -> Result<Vec<WastTest>> {
&cm_tests,
&FindConfig::Infer(component_test_config),
)
+ .context("Do you need to `git submodule update --init`?")
.with_context(|| format!("failed to add tests from `{}`", cm_tests.display()))?;
// Temporarily work around upstream tests that fail in unexpected ways (e.g.