File size: 688 Bytes
dbaf81f
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#!/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"