Commit b19fd0b7 authored by Andreas Haas's avatar Andreas Haas Committed by Commit Bot

[wasm] Suggest 'gclient sync' when test is failing

The jsapi-harness test runs the JS-API spec tests of WebAssembly, which
get fetched from github when 'gclient sync' is executed. Without
'gclient sync' the harness may executed a version of the tests which is
older than required by the harness. In this CL I add a suggestion to
the test to run 'gclient sync' which is shown when the test is failing.

R=marja@chromium.org

Change-Id: I36d03bebc4d6cc554eefd4eb376c3d309b7ee5b9
Reviewed-on: https://chromium-review.googlesource.com/558419Reviewed-by: 's avatarMarja Hölttä <marja@chromium.org>
Commit-Queue: Andreas Haas <ahaas@chromium.org>
Cr-Commit-Position: refs/heads/master@{#46375}
parent e093ad73
......@@ -107,6 +107,13 @@ assertPromiseResult(last_promise, _ => {
"the bug, please remove the test from the known failures list.")
}
if (unexpected) {
print("\n");
print(" #############################################################");
print(" # #");
print(" # Unexpected outcome. Did you forget to run 'gclient sync'? #");
print(" # #");
print(" #############################################################");
print("\n");
assertUnreachable("Unexpected outcome");
}
}
......
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