Skip to content

Commit 4b6c52e

Browse files
committed
fix test
1 parent a0fffc9 commit 4b6c52e

1 file changed

Lines changed: 6 additions & 1 deletion

File tree

.github/scripts/bisect/run.sh

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,11 @@ for env_name in "${required_envs[@]}"; do
2424
fi
2525
done
2626

27+
if [ ! -e ${DETECTOR} ]; do
28+
echo "Missing detector script: ${DETECTOR}."
29+
exit 1
30+
fi
31+
2732
checkout_pytorch_commit() {
2833
local repo_dir="$1"
2934
local commit="$2"
@@ -55,7 +60,7 @@ checkout_pytorch_commit "${PYTORCH_SRC_DIR}" "${BAD_COMMIT}"
5560
bash ${tritonparse_dir}/bisect/scripts/build_pytorch.sh
5661
# allow the regression detector to exit with error code
5762
set +e
58-
BASELINE_LOG="${BASELINE_LOG}" python ./.ci/bisect/regression_detector.py
63+
BASELINE_LOG="${BASELINE_LOG}" python "${DETECTOR}"
5964
PREFLIGHT_RC=$?
6065
set -e
6166

0 commit comments

Comments
 (0)