test_run fails on Atoms modules which are not loaded automatically
Reported by JB Desmottes
Originally assigned to Pierre-Aime AGNEL
BUG DESCRIPTION:
----------------
The final command built by test_single in test system is different if test_run is given a path to an external module or if it is a scilab module.
If it is an external module, the command includes a call to the loader.sce file :
test_cmd = "( """ + SCI_BIN + "\bin\scilex.exe" + """" + " " + mode_arg + " " + language_arg + " -nb -e ""exec(""""" + loader_path + """"");exec(""""" + tmp_tst + """"");"" > """ + tmp_res + """ ) 2> """ + tmp_err + """";
If it's a scilab module (atoms or not), loader isn't executed :
test_cmd = "( """ + SCI_BIN + "\bin\scilex.exe" + """" + " " + mode_arg + " " + language_arg + " -nb -f """ + tmp_tst + """ > """ + tmp_res + """ ) 2> """ + tmp_err + """";
But if it is an atoms module which is not autoloaded, the test fails immediately because the variables are not defined...
ERROR LOG:
----------
HOW TO REPRODUCE THE BUG:
-------------------------
OTHER INFORMATION:
------------------