File size: 591 Bytes
7f50cd1
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#!/bin/sh
set -eu

# Only root may create, replace or remove files in /logs/verifier while grading runs, so no process of the method's
# account, during or after its runs, can write a score file there.
mkdir -p /logs/verifier
chown root:root /logs/verifier
chmod 0755 /logs/verifier

# /logs/verifier is shared with the agent container: clear leftover score files before grading.
# reward_scale.py clears them again and writes its own without following links.
rm -rf /logs/verifier/reward.json /logs/verifier/reward.txt /logs/verifier/score_details.json

exec python3 /tests/reward_scale.py