Skip to content

Commit cc35eca

Browse files
committed
Update
[ghstack-poisoned]
1 parent 204dd3e commit cc35eca

File tree

1 file changed

+4
-7
lines changed

1 file changed

+4
-7
lines changed

.ci/scripts/test_backend.sh

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -25,11 +25,15 @@ if [[ "$(uname)" == "Darwin" ]]; then
2525
eval "$(conda shell.bash hook)"
2626
${CONDA_RUN} --no-capture-output pip install awscli==1.37.21
2727
CONDA_PREFIX="${CONDA_RUN} --no-capture-output"
28+
SETUP_SCRIPT=.ci/scripts/setup-macos.sh
2829
else
2930
IS_MACOS=0
3031
CONDA_PREFIX=""
32+
SETUP_SCRIPT=.ci/scripts/setup-linux.sh
3133
fi
3234

35+
CMAKE_ARGS="$EXTRA_BUILD_ARGS" ${CONDA_PREFIX} $SETUP_SCRIPT --build-tool cmake --build-mode Release --editable true
36+
3337
export PYTHON_EXECUTABLE=python
3438

3539
# CMake options to use, in addition to the defaults.
@@ -60,13 +64,6 @@ if [[ "$FLOW" == *arm* ]]; then
6064
.ci/scripts/setup-arm-baremetal-tools.sh
6165
fi
6266

63-
if [[ $IS_MACOS -eq 1 ]]; then
64-
SETUP_SCRIPT=.ci/scripts/setup-macos.sh
65-
else
66-
SETUP_SCRIPT=.ci/scripts/setup-linux.sh
67-
fi
68-
CMAKE_ARGS="$EXTRA_BUILD_ARGS" ${CONDA_PREFIX} $SETUP_SCRIPT --build-tool cmake --build-mode Release --editable true
69-
7067
EXIT_CODE=0
7168
${CONDA_PREFIX} pytest -c /dev/nul -n auto backends/test/suite/$SUITE/ -m flow_$FLOW --json-report --json-report-file="$REPORT_FILE" || EXIT_CODE=$?
7269
# Generate markdown summary.

0 commit comments

Comments
 (0)