From dcbee45719299f8bace3114c5192f6444021bdd7 Mon Sep 17 00:00:00 2001 From: Volodymyr Shymanskyy Date: Mon, 30 Dec 2019 16:31:07 +0200 Subject: [PATCH] Try fixing macos --- .github/workflows/tests.yml | 9 +-------- test/run-spec-test.py | 7 +++++-- 2 files changed, 6 insertions(+), 10 deletions(-) diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index bd2a36f..4b9f940 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -60,17 +60,10 @@ jobs: - name: Build run: | cmake --build build - - name: Fetch spec tests and warm-up - # this is ok to fail here - continue-on-error: true - run: | - cd test - ./run-spec-test.py ./core/address.json - sleep 15 - name: Run spec tests run: | cd test - ./run-spec-test.py + ./run-spec-test.py --sleep=30 - name: Run WASI tests run: | cd test diff --git a/test/run-spec-test.py b/test/run-spec-test.py index 8cdb6b2..5a25a2a 100755 --- a/test/run-spec-test.py +++ b/test/run-spec-test.py @@ -41,6 +41,7 @@ parser = argparse.ArgumentParser() parser.add_argument("--exec", metavar="", default="../build/wasm3") parser.add_argument("--engine", metavar="") parser.add_argument("--timeout", type=int, default=30) +parser.add_argument("--sleep", type=float, default=0) parser.add_argument("--line", metavar="", type=int) parser.add_argument("--all", action="store_true") parser.add_argument("--show-logs", action="store_true") @@ -315,11 +316,13 @@ wasm3 = Wasm3(args.exec, args.engine) print("Version: " + wasm3.version()) -# MacOS does not allow wasm3 to load files right after start -# fetching the tests while wasm3 is already running seems to help if not (os.path.isdir("./core") and os.path.isdir("./proposals")): fetchSpecTests() +if args.sleep: + print("Sleeping for {args.sleep} seconds" + time.sleep(args.sleep) + blacklist = Blacklist([ "float_exprs.wast:* f32.nonarithmetic_nan_bitpattern*", "imports.wast:*",