We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
for loop
gotestmd uses the exit code of the last run command.
We use for loop for some tests. But the status of the loop is the status of the last command that executes inside this loop. For example:
for { operation1 ... operationN }
If operation1 returns false, but operationN returns true then $? also returns true. And gotestmd bash won't see the error.
operation1
false
operationN
true
$?
gotestmd
bash
We can use a subshell for for cycles
for
The text was updated successfully, but these errors were encountered:
Fixed - #7661
Sorry, something went wrong.
glazychev-art
No branches or pull requests
Description
gotestmd uses the exit code of the last run command.
We use
for loop
for some tests. But the status of the loop is the status of the last command that executes inside this loop.For example:
If
operation1
returnsfalse
, butoperationN
returnstrue
then$?
also returnstrue
. Andgotestmd
bash
won't see the error.Possible solution
We can use a subshell for
for
cyclesThe text was updated successfully, but these errors were encountered: