Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Do not report past failures, only ones from the current run. #100

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 10 additions & 4 deletions tools_bin/report_missing_failed_test
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,10 @@
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;
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
dvalinrh marked this conversation as resolved.
Show resolved Hide resolved

curdir=`pwd`
while IFS= read -r sys
Expand All @@ -25,7 +28,8 @@ 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`
echo "Failed: $fail_run $expt_test" >> ${curdir}/failed_test
fi
rm -rf tar_check
cd ..
Expand All @@ -49,8 +53,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