I am running an AWS CodePipeline and running a pytest, according to the success failure I will run the scripts. But my make test is exiting with the failure. How can I stop the scripting from existing, rather use the result from the script in running other tasks.
MakeFile
test:
python -m pytest tests.py
yaml file
make test --keep-going
echo $?
if [ $? -ne 0 ]; then
// task 1
else
// task 2
fi
I will be using the value of $? to decide which task to run.