From ddf8caa9ca77285163ef6adb53a7c7fd7085a40d Mon Sep 17 00:00:00 2001 From: Emmanuel Garette Date: Fri, 11 Mar 2022 21:27:18 +0100 Subject: [PATCH] rename xml to tiram_obj --- test.py | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/test.py b/test.py index 86ac814..689814d 100755 --- a/test.py +++ b/test.py @@ -344,8 +344,9 @@ async def build(server_name, datas, module_infos): except Exception as err: print(f'Try to load {module_info.modules}') raise err from err - xml = eolobj.save(None) - #print(xml) + tiram_obj = eolobj.save(None) +# if server_name == 'revprox.in.silique.fr': +# print(tiram_obj) #cfg['patches_dir'] = join(test_dir, 'patches') cfg['tmp_dir'] = 'tmp' cfg['destinations_dir'] = join(INSTALL_DIR, datas['module'], CONFIG_DEST_DIR, server_name) @@ -354,9 +355,9 @@ async def build(server_name, datas, module_infos): makedirs('tmp') makedirs(cfg['destinations_dir']) try: - exec(xml, None, optiondescription) + exec(tiram_obj, None, optiondescription) except Exception as err: - print(xml) + print(tiram_obj) raise Exception(f'unknown error when load tiramisu object {err}') from err config = await Config(optiondescription['option_0'], display_name=tiramisu_display_name) await config.property.read_write()