Skip to content

Commit b37d921

Browse files
committed
creating dir for linux tests
1 parent 317f88b commit b37d921

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

api/meson.build

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,9 @@ test('api_show_template_code_for_G4Cons',
5252
args : [system_template, '-gv', 'G4Cons', '-silent'])
5353

5454
test_dir = join_paths(build_root, 'test')
55+
# Ensure the per-volume test directory exists in a clean build tree (CI/Linux).
56+
run_command('mkdir', '-p', test_dir, check: true)
57+
5558
test('api_create_system',
5659
python_exe,
5760
is_parallel: false,
@@ -83,6 +86,9 @@ foreach volume: g4objects.keys()
8386
sub_name='-geo_sub=build_' + test_name
8487
geo_py = '-write_to=geometry_test_' + volume + '.py'
8588
test_dir = join_paths(build_root, test_name)
89+
# Ensure the per-volume test directory exists in a clean build tree (CI/Linux).
90+
run_command('mkdir', '-p', test_dir, check: true)
91+
8692
pars = g4objects[volume]
8793
test('api_create_template_system_with' + volume,
8894
python_exe,

0 commit comments

Comments
 (0)