eigent/backend/benchmark/harbor/template/tests/test.sh
bytecii 639e3764a1
Some checks failed
Test / Run Python Tests (push) Has been cancelled
CodeQL Advanced / Analyze (actions) (push) Has been cancelled
CodeQL Advanced / Analyze (javascript-typescript) (push) Has been cancelled
CodeQL Advanced / Analyze (python) (push) Has been cancelled
Pre-commit / pre-commit (push) Has been cancelled
feat: support harbor for benchmark (#1466)
Co-authored-by: bytecii <bytecii@users.noreply.github.com>
Co-authored-by: Wendong-Fan <133094783+Wendong-Fan@users.noreply.github.com>
2026-03-08 22:24:53 +08:00

26 lines
649 B
Bash
Executable file

#!/bin/bash
set -euo pipefail
echo "========================================="
echo "Running Eigent Benchmark Evaluation"
echo "========================================="
WORKING_DIR="${WORKING_DIR:-/workspace}"
set +e
python3 /tests/evaluate.py \
--config /tests/config.json \
--working-dir "$WORKING_DIR" \
--output-dir /logs/verifier
eval_exit=$?
set -e
echo "========================================="
echo "Evaluation completed with exit code: $eval_exit"
echo "========================================="
if [ $eval_exit -ne 0 ] && [ ! -f /logs/verifier/reward.txt ]; then
echo "0.0" > /logs/verifier/reward.txt
fi
exit 0