configure_suite() calls mkdir($tmp_path) if necessary

This commit is contained in:
clanmills 2020-04-26 09:53:20 +01:00
parent 92f2458229
commit 00d89e6523

View File

@ -169,6 +169,8 @@ def configure_suite(config_file):
abs_path = os.path.abspath(
os.path.join(_parameters["suite_root"], rel_path)
)
if key == "tmp_path" and not os.path.isdir(abs_path):
os.mkdir(abs_path)
if not os.path.exists(abs_path):
raise ValueError(
"Path replacement for {short}: {abspath} does not exist"