Skip to content
Snippets Groups Projects
Commit b3f581c6 authored by Daniel Skýpala's avatar Daniel Skýpala
Browse files

Test: Fix wrong path

yet again
parent 5812accc
No related branches found
No related tags found
No related merge requests found
......@@ -20,17 +20,21 @@ def test_task_commit(task_path: str, commit_hash: str, workdir="_test") -> None:
with open(outdir + "time", "w") as f:
f.write(str(int(start_time)))
task_path = os.path.join(config.REPO_DIR, workdir, task_path)
def run_pisek(args, output):
print("Run pisek")
with open(os.path.join(outdir, output), "w") as out:
return subprocess.run(
res = subprocess.run(
["pisek"] + args,
stdout=out,
stderr=subprocess.STDOUT,
text=True,
cwd=os.path.join(config.REPO_DIR, workdir, task_path),
cwd=task_path
)
print("Finished running pisek")
return res
lock = os.path.join(outdir, ".pisek_lock")
lock = os.path.join(task_path, ".pisek_lock")
if os.path.exists(lock):
os.unlink(lock)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment