[TIP] Not receiving a failure return code when running coverage in Bah Shell
edward.huth at oracle.com
Thu Apr 17 14:19:51 PDT 2014
I have a bash shell script that is processing coverage for a number of python files.
When executing the shell script for the failing directories, I see that the failure condition is met in the module cmdline.py(return FAIL_UNDER) however
I don't see the value being returned to the shell.
My question is how do I capture the return code so I can test this within the bash_shell?
for c_file in $CMD2
echo ' '
echo 'Running coverage for :'$c_file
coverage run $c_file
coverage report -m --fail-under=$FAIL --rcfile=$RCFILE ### would like to be able to process the return code here
echo ' '
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the testing-in-python