sidrefresh's picture
Add files using upload-large-folder tool
dbaf81f verified
Raw History Blame Contribute Delete
688 Bytes
#!/bin/bash
# Grading dependencies are installed before the trial, never fetched here.
set -u
mkdir -p /logs/verifier/artifacts
rm -f /logs/verifier/reward.txt
cp -f /root/Desktop/final.mp4 /logs/verifier/artifacts/ 2>/dev/null || true
cp -f /root/edit/project.mlt /logs/verifier/artifacts/ 2>/dev/null || true
python3 -m pytest --ctrf /logs/verifier/ctrf.json /tests/test_outputs.py -rA
pytest_status=$?
# Partial-credit pytest failures are normal. Infrastructure failures must not
# be disguised as a normal score of zero.
if [ ! -s /logs/verifier/reward.txt ]; then
echo "Verifier error: no valid reward was produced; inspect verifier.json" >&2
exit 2
fi
exit "$pytest_status"