Lauterbach cmm script fails to create a directory -


from lauterbach command console when execute following instruction directory created. when include same line in cmm script, fails create directory:

os.command mkdir \\execution\v1.0\test_logs\shmoo\modem_vu_new\&sn\vmin 

in practice scripts ("cmm scripts") strings (or sub-strings) starting ampersand "&" macros, replaced content of macro. if macro "&sn" hasn't been created before, it's occurence in stringt replaced empty string.

to fix command create macro name "&sn" contains characters "&sn" concatenating "&" "sn" (to prevent macro replacement).

you'll following code:

private &sn &sn="&"+"sn" os.command mkdir \\execution\v1.0\test_logs\shmoo\modem_vu_new\&sn\vmin 

by way: rather use build-in command mkdir instead of os.command mkdir


Comments

Popular posts from this blog

php - Vagrant up error - Uncaught Reflection Exception: Class DOMDocument does not exist -

vue.js - Create hooks for automated testing -

Add new key value to json node in java -