Skip to content

Commit 9486b0d

Browse files
committed
Fix local test runs by passing real test dir path
1 parent fb5b040 commit 9486b0d

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

utils/webassembly/ci.sh

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -30,14 +30,18 @@ $BUILD_SCRIPT $FLAGS
3030
if [[ "$(uname)" == "Darwin" ]]; then
3131
# workaround: host target test directory is necessary to use run-test
3232
mkdir -p $TARGET_BUILD_DIR/swift-macosx-x86_64/test-macosx-x86_64
33+
HOST_PLATFORM=macosx
34+
else
35+
HOST_PLATFORM=linux
3336
fi
3437

3538
if [[ "$(uname)" == "Linux" ]]; then
36-
$RUN_TEST_BIN --build-dir $TARGET_BUILD_DIR --target wasi-wasm32 test/stdlib/
39+
$RUN_TEST_BIN --build-dir $TARGET_BUILD_DIR --target wasi-wasm32 \
40+
$TARGET_BUILD_DIR/swift-${HOST_PLATFORM}-x86_64/test-wasi-wasm32/stdlib
3741
echo "Skip running test suites for Linux"
3842
else
39-
40-
$RUN_TEST_BIN --build-dir $TARGET_BUILD_DIR --target wasi-wasm32 test/stdlib/
43+
$RUN_TEST_BIN --build-dir $TARGET_BUILD_DIR --target wasi-wasm32 \
44+
$TARGET_BUILD_DIR/swift-${HOST_PLATFORM}-x86_64/test-wasi-wasm32/stdlib
4145

4246
# Run test but ignore failure temporarily
4347
$BUILD_SCRIPT $FLAGS -t || true

0 commit comments

Comments
 (0)