Skip to content

Commit

Permalink
Merge pull request #127 from redhat-performance/fix_filter
Browse files Browse the repository at this point in the history
We only want to report what failed in the run we just performed.
  • Loading branch information
dvalinrh authored Nov 4, 2024
2 parents 5c0a61d + fe150f6 commit 9900f22
Showing 1 changed file with 14 additions and 4 deletions.
18 changes: 14 additions & 4 deletions tools_bin/report_missing_failed_test
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,13 @@
find . -name ansible_vars_main.yml -print > ans_files
cut -d '/' -f 2 ans_files | rev | cut -d_ -f 2- | rev | sort -u > systems

rm -f initial_summary all_sys test_summary expected_test missing_test failed_test test_errors
#
# Save past errors for future reference.
#
if [[ -f test_errors ]]; then
cat test_errors >> past_errors
fi
rm -rf initial_summary all_sys test_summary test_errors tar_check failed_test

curdir=`pwd`
while IFS= read -r sys
Expand All @@ -25,7 +31,9 @@ do
tar xf ../$tball $file 2> /dev/null
grep -q Ran $file
if [ $? -ne 0 ]; then
echo "Failed: $sys $expt_test" >> ${curdir}/failed_test
fail_run=`echo $tball | cut -d'/' -f 1`
timestamp=`date`
echo "${timestamp}: Failed: $fail_run $expt_test" >> ${curdir}/failed_test
fi
rm -rf tar_check
cd ..
Expand All @@ -49,8 +57,10 @@ if [ -f ${curdir}/failed_test ]; then
do
list=`grep $sys failed_test | grep $expt_test`
if [[ $list != "" ]]; then
failed_test=`echo $list | sed "s/Failed: $sys //g"`
echo failed:$sys:$failed_test >> test_errors
grep -q "$list" past_errors
if [ $? -ne 0 ]; then
echo $list >> test_errors
fi
fi
done < expected_test
done < ${curdir}/systems
Expand Down

0 comments on commit 9900f22

Please sign in to comment.