summaryrefslogtreecommitdiffstats
path: root/cds-regression-test/test/exit_on_failure.sh
blob: 733e9a68cfb1ea25407f7f7da1b0d587e29a2e0c (plain)
1
2
3
4
5
6
7
8
#!/bin/bash

if [ "$(wc -c $FAILED_TESTS_DIRECTORY/*|awk '/total/ {print $1}')" -gt 0 ]
then
 echo "exiting due to presence of files in FAILED_TESTS_DIRECTORY"
 wc -c $FAILED_TESTS_DIRECTORY/*
 exit 1;
fi