Poseidon: Use relative path to remove workspace directory

See #1088
This commit is contained in:
Sebastian Serth
2022-06-10 18:13:11 +02:00
parent ee8e76af07
commit 8e403ff65a
2 changed files with 2 additions and 3 deletions

View File

@ -120,8 +120,7 @@ class Runner::Strategy::Poseidon < Runner::Strategy
# First, clean the workspace and second, copy all files to their location.
# This ensures that no artifacts from a previous submission remain in the workspace.
# TODO: Switch back to clean diretory content only. See https://github.com/openHPI/poseidon/issues/42
body = {copy: copy, delete: ['/workspace']}
body = {copy: copy, delete: ['./*']}
response = self.class.http_connection.patch url, body.to_json
return if response.status == 204