Open edouard-lopez opened 7 years ago
$status
is set by the run
function - if you're not invoking your command via run
you should just be checking $?
like you would in standard Bash. You can get the exit code of a background process via wait
or implement some other capturing mechanism manually.
I had some concurrent calls issue in my project so I write the following test to simulate a series of parallel calls:
{ … } &
) ;{ … } &
) ;Question
As you can see I'm checking for the
$status
to be sure there is$NO_ERROR
, but it fails. When printing$status
it is empty.Why is that ? Is there a way to test both statuses?