Commit f8b2540b authored by Till Bald's avatar Till Bald

Merge branch 'master' into Docker_CI

parents e27b83d2 0cea4465
Pipeline #29182994 failed with stages
in 14 minutes and 46 seconds
......@@ -41,6 +41,7 @@ cases = (('case1', 'c99df50a89f6c845f0a738cb4e6d679f363c6c9eb2049431dfeaa0235cc9
class TestCenter(unittest.TestCase):
script_folder = os.path.abspath('.')
def create_test(exec_type, case, output_sha256_expected):
......@@ -80,7 +81,14 @@ def create_test(exec_type, case, output_sha256_expected):
params.append(line.rstrip())
output_prefix = 'test_'
output_directory = tempfile.mkdtemp(prefix = '{0}_test_{1}'.format('crosslinx-', case))
# output files are stored in a subfolder to allow uploading artifacts
# during gitlab CI
temp_basedir = os.path.join(self.script_folder, 'tests', 'test_output')
# convert file_path for ruby - it wont work with \ on windows
if '\\' in temp_basedir:
temp_basedir = '/'.join(temp_basedir.split('\\'))
output_directory = tempfile.mkdtemp(prefix = '{0}_test_{1}_'.format('crosslinx', case), dir = temp_basedir)
# output files are not removed automatically to allow the user to inspect the files
script_arguments = params + ['-outputPrefix', output_prefix, '-outputDirectory', output_directory]
......
# Ignore everything in this directory
*
# Except this file
!.gitignore
\ No newline at end of file
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