I have a script which compile a program. This program first compiles the source code using
configure && make commands, then runs some tests using
make test. This script also uses
set -e to catch errors.
Now, what I want to do is keep
set -e set in the script and still continue running the script when
make test encounters some errors. I have tried using
make -k test to make the tests run even when it encounters errors, but it is caught by the
set -e command and it is stopped.
I also know which tests are going to fail, so is there any way to tell the script to skip catching these errors.