Restore executable mode on trusted setup.py fixtures
#7
by AymenKallala - opened
Problem
79 coding tasks store tests/trusted/setup.py as 0644. Their trusted inventories require 0755, so the verifier stops before running tests.
Reproduce
From a checkout of 1eb1ecf, run the fixture check for one affected task:
cd tasks/oauthlib__oauthlib.1fd52536.combine_file__1bsv3m8l/tests
python - <<'PY'
import json
import tempfile
from pathlib import Path
import grade
with tempfile.TemporaryDirectory() as work:
grade.restore(work, "trusted", json.loads(Path("trusted-inventory.json").read_text()))
PY
It raises ValueError: Trusted private test bytes or modes drifted.
Fix
Set the executable bit on those 79 copies of setup.py (40 oauthlib, 39 textdistance). This is a mode-only diff. The fixture check passes on all 79 after the change.
AymenKallala changed pull request status to open