dodona-edu / universal-judge

Universal judge for educational software testing
https://docs.dodona.be/en/tested
MIT License
9 stars 4 forks source link

Fix bug when using execution unit compilation #446

Closed niknetniko closed 8 months ago

niknetniko commented 8 months ago

Due to a bad flattening, all (execution) units had index 0, meaning they all tried to use the same folder. In most cases, this isn't a problem, but sometimes it is. Fixed by giving the units a proper index.

This fixes the recent FileExistsError: [Errno 17] File exists: '/home/runner/workdir/execution_0' errors.