Skip to content
Snippets Groups Projects
Commit 486af6bf authored by Jiří Kalvoda's avatar Jiří Kalvoda
Browse files

Init empty test

parent eba55942
Branches
No related tags found
No related merge requests found
import subprocess
import os, sys
import time
import task_autotest.config as config
def test_task_commit(task_path, commit, workdir="_test"):
wd = config.REPO_DIR + "/" + workdir
subprocess.run(["git", "checkout", commit], cwd=wd, check=True)
outdir = config.DATA_DIR + "/tests/" + task_path.replace('/', '_') + '/' + commit + '/'
os.mkdir(outdir)
with open(outdir + "time", "w") as f:
f.write(time.time())
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment