previously run_tests always returned 0 no matter the result.
It can now be hooked up to a gerrit gate job.
Change-Id: I2c4bccec71c179fd2b1b965613c34179da830ac5
JIRA: -
Signed-off-by: Hans Feldt <hans.feldt@ericsson.com>
flake8 yardstick > $logfile
if [ $? -ne 0 ]; then
echo "FAILED, result in $logfile"
+ exit 1
else
echo "OK, result in $logfile"
fi
python -m unittest discover -s yardstick/tests &> $logfile
if [ $? -ne 0 ]; then
echo "FAILED, result in $logfile"
+ exit 1
else
echo "OK, result in $logfile"
fi