The symptom seen is that [pre-launch-env-vars] in test1 is executed in test2 if defined using #{shell …}

Related, [pre-launch-env-vars] variables set by calling [system …] do not show up in the shell / megatest.sh


(sample from test1 testconfig)

[pre-launch-env-vars]
MY_PRELAUNCH_VAR #{shell echo test1 $MT_TEST_NAME}

(sample from test2 testconfig)

[pre-launch-env-vars]