This is an automated email from the ASF dual-hosted git repository.
yufei pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/polaris.git
The following commit(s) were added to refs/heads/main by this push:
new 9debe461 Fix broken CI (#1015)
9debe461 is described below
commit 9debe461b0a7692bc470a8bd4b221a248c7a734e
Author: MonkeyCanCode <[email protected]>
AuthorDate: Mon Feb 17 11:55:08 2025 -0600
Fix broken CI (#1015)
---
regtests/run.sh | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
diff --git a/regtests/run.sh b/regtests/run.sh
index 652bee0e..405e8171 100755
--- a/regtests/run.sh
+++ b/regtests/run.sh
@@ -18,6 +18,7 @@
# under the License.
#
# Run without args to run all tests, or single arg for single test.
+SCRIPT_DIR=$( cd -- "$( dirname -- "${BASH_SOURCE[0]}" )" &> /dev/null && pwd )
export SPARK_VERSION=spark-3.5.3
export SPARK_DISTRIBUTION=${SPARK_VERSION}-bin-hadoop3
@@ -90,7 +91,7 @@ for TEST_FILE in ${TEST_LIST}; do
# Special-case running all client pytests
if [ "${TEST_FILE}" == 'client/python/test' ]; then
loginfo "Starting pytest for entire client suite"
- python3 -m pytest ${TEST_FILE}
+ SCRIPT_DIR="$SCRIPT_DIR" python3 -m pytest ${TEST_FILE}
CODE=$?
if [[ $CODE -ne 0 ]]; then
logred "Test FAILED: ${TEST_FILE}"
@@ -110,7 +111,7 @@ for TEST_FILE in ${TEST_LIST}; do
continue
fi
loginfo "Starting pytest ${TEST_SUITE}:${TEST_SHORTNAME}"
- python3 -m pytest $TEST_FILE
+ SCRIPT_DIR="$SCRIPT_DIR" python3 -m pytest $TEST_FILE
CODE=$?
if [[ $CODE -ne 0 ]]; then
logred "Test FAILED: ${TEST_SUITE}:${TEST_SHORTNAME}"