xk6-exec icon indicating copy to clipboard operation
xk6-exec copied to clipboard

Add support for env and fatalError options

Open romaia opened this issue 11 months ago • 2 comments

env allows to specify environment variables that will be passed to the command being executed.

fatalError allows to change the default behaviour that will abort the test execution, allowing for expected failures to not break k6.

When the command exits with a non zero error code, the stderr will be returned instead of the stdout

romaia avatar Mar 30 '24 03:03 romaia

CLA assistant check
All committers have signed the CLA.

CLAassistant avatar Mar 30 '24 03:03 CLAassistant

The env option here would be quite awesome, wondering if there's a chance to decouple the two features of this PR and get env options in sooner @romaia ?

frankisawesome avatar Apr 03 '24 06:04 frankisawesome

Hi @romaia. We are closing this PR due to inactivity. If you are still interested in moving this PR forward based on our discussion please re-open it.

pablochacin avatar May 21 '24 08:05 pablochacin