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.I need help regarding these two questions urgently as I have very little knowledge in shell scripting.
Skip catching errors in a shell script
shell script;error handling
make test || truee.g.#!/bin/shset -eecho hellomake test || trueecho doneWill result inhellomake: *** No rule to make target `test'.  Stop.doneIn this case the failure was a missing rule (no Makefile :-)) but we can see the script continues.