Skip to content
Snippets Groups Projects
Commit 9d8fe18a authored by jgatt's avatar jgatt
Browse files

fix bug in gitlab test suite

parent 1ae23ea4
Branches
Tags
1 merge request!12Merge Request multibehavior
Pipeline #5468 passed with warnings
......@@ -21,14 +21,14 @@ def make_error_file(seed=None,red_windows=None,yellow_windows=None) :
error_file["red_windows"] = red_windows
if yellow_windows :
error_file["yellow_windows"] = yellow_windows
with open(schedconf_file, 'w') as error_description_file :
with open(schedconf_file, 'w+') as error_description_file :
json.dump(error_file,error_description_file)
def error_user(user_name, platform_multiC, expected_error="", test_name=None, schedconf=None):
if test_name == None:
test_name = f'{user_name}-{platform_multiC.name}'
if schedconf == None:
schedconf = f'test-instances/user_description_file.json'
schedconf = 'test-instances/user_description_file.json'
output_dir, robin_filename, _ = init_instance(test_name)
batcmd = gen_batsim_cmd(platform_multiC.filename, empty_workload, output_dir,
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment