Currently job artifacts in CI/CD pipelines on LRZ GitLab never expire. Starting from Wed 26.1.2022 the default expiration time will be 30 days (GitLab default). Currently existing artifacts in already completed jobs will not be affected by the change. The latest artifacts for all jobs in the latest successful pipelines will be kept. More information: https://gitlab.lrz.de/help/user/admin_area/settings/continuous_integration.html#default-artifacts-expiration

Commit e5c3a696 authored by di68kap's avatar di68kap
Browse files

- test_toolkit.py: 'tmp' directory is not assumed to exist already

parent 990282ed
......@@ -61,7 +61,7 @@ class TestCompilerGeneration:
word = /\w+/
WSPC = /\s+/
"""
tmp = 'tmp/' if os.path.isdir('tmp') else ('test/tmp/')
tmp = 'test/tmp/' if os.path.isdir('test/tmp/') else ('tmp/')
trivial_text = u"""Es war ein Koenig in Thule.\n"""
grammar_name = tmp + "TestCompilerGeneration.ebnf"
compiler_name = tmp + "TestCompilerGenerationCompiler.py"
......@@ -69,6 +69,8 @@ class TestCompilerGeneration:
result_name = tmp + "TestCompilerGeneration_text.xml"
def setup(self):
if not os.path.exists(self.tmp):
os.mkdir(self.tmp)
with open(self.grammar_name, "w") as f:
f.write(self.trivial_lang)
with open(self.text_name, "w") as f:
......@@ -88,6 +90,8 @@ class TestCompilerGeneration:
flag = True
if not flag:
os.rmdir('LOGS')
if os.path.exists(self.tmp):
os.rmdir(self.tmp)
def test_load_compiler_suite(self):
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment