Skip to content

Commit 7fff59a

Browse files
committed
Fix local test runs by passing real test dir path
1 parent 3d8b2f7 commit 7fff59a

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
@@ -37,14 +37,18 @@ $BUILD_SCRIPT
3737
if [[ "$(uname)" == "Darwin" ]]; then
3838
# workaround: host target test directory is necessary to use run-test
3939
mkdir -p $TARGET_BUILD_DIR/swift-macosx-x86_64/test-macosx-x86_64
40+
HOST_PLATFORM=macosx
41+
else
42+
HOST_PLATFORM=linux
4043
fi
4144

4245
if [[ "$(uname)" == "Linux" ]]; then
43-
$RUN_TEST_BIN --build-dir $TARGET_BUILD_DIR --target wasi-wasm32 test/stdlib/
46+
$RUN_TEST_BIN --build-dir $TARGET_BUILD_DIR --target wasi-wasm32 \
47+
$TARGET_BUILD_DIR/swift-${HOST_PLATFORM}-x86_64/test-wasi-wasm32/stdlib
4448
echo "Skip running test suites for Linux"
4549
else
46-
47-
$RUN_TEST_BIN --build-dir $TARGET_BUILD_DIR --target wasi-wasm32 test/stdlib/
50+
$RUN_TEST_BIN --build-dir $TARGET_BUILD_DIR --target wasi-wasm32 \
51+
$TARGET_BUILD_DIR/swift-${HOST_PLATFORM}-x86_64/test-wasi-wasm32/stdlib
4852

4953
# Run test but ignore failure temporarily
5054
ninja check-swift-wasi-wasm32 -C $TARGET_BUILD_DIR/swift-$HOST_SUFFIX || true

0 commit comments

Comments
 (0)