xtf-cz / xtf

MIT License
12 stars 55 forks source link

Provide the full command #503

Closed jbliznak closed 2 years ago

jbliznak commented 2 years ago

The original implementation worked ok for one-part command list, eg:

"Cmd": [
    "/opt/eap/bin/openshift-launch.sh"
],

But we can't expect all commands to be given like this, we need to be able to parse also eg:

"Cmd": [
    "sh",
    "-c",
    "${JBOSS_CONTAINER_WILDFLY_RUN_MODULE}/run"
],

This commits change the default behavior a bit (however, there is no change for those one-part commands) and adds new method to also be able to get command as list.