I am new to shell script. I have a script that runs several test scripts using different input files. Currently it exits if any one of the input test fails. I want the test to complete running the loop and exits with all errors accumulated at last.
main.sh
set -e ;
set -x ;
for f in $files;do
./scripts/test_script.sh $f
done
======================
test_script.sh : runs few stuff and exits like this.
:
:
:
exit $?
================