Skip to content

Commit

Permalink
Resolve checkTap command error on rerun tap file
Browse files Browse the repository at this point in the history
- Execute and validate tap files after the rerun tap file is generated and copied to the Tapfile specific platform folder.

resolves: #5347

Signed-off-by: Anna Babu Palathingal <[email protected]>
  • Loading branch information
annaibm committed May 28, 2024
1 parent 0fe6d74 commit eb11efe
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions buildenv/jenkins/tapVerification/aqaTap.sh
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,7 @@ checkFailed() {
echo "============================"
echo "List failed tests in $(pwd)"
echo "============================"
if grep -R 'not ok ' . ; then
if grep -R 'not ok ' . ; then
echo "[ERROR]: There are failed tests"
exit 1
else
Expand All @@ -175,22 +175,22 @@ findCmd() {
fileName=$2
echo "----------------------------"
echo "$1. List $fileName ..."
if [ "$(find . -name "$fileName")" ]; then
find . -name "$fileName" | sort
numFiles=$(find . -name "$fileName" -type f -print | wc -l)
if [ "$(find . -name "$fileName" ! -name "*_rerun*.tap")" ]; then
find . -name "$fileName" ! -name "*_rerun*.tap" | sort
numFiles=$(find . -name "$fileName" -type f ! -name "*_rerun*.tap" -print | wc -l)
echo "Total num of Files:$numFiles"
fileNameWithoutExt=${fileName//".tap"/""}
if [ $numFiles == 1 ]; then
if [ "$(find . -name "${fileNameWithoutExt}_testList*")" ]; then
find . -name "${fileNameWithoutExt}_testList*"
if [ "$(find . -name "${fileNameWithoutExt}_testList*"! -name "*_rerun*.tap")" ]; then
find . -name "${fileNameWithoutExt}_testList*" ! -name "*_rerun*.tap"
echo "Found 1 testList file. Looks like this is a parallel run, so multiple testList files are expected."
echo "[ERROR]: Missing testList TAP files"
exit 1
fi
else
for (( i=0; i < $numFiles; ++i ))
do
if [ "$(find . -name "${fileNameWithoutExt}_testList_${i}*")" == "" ]; then
if [ "$(find . -name "${fileNameWithoutExt}_testList_${i}*" ! -name "*_rerun*.tap")" == "" ]; then
echo "[ERROR]: Missing ${fileNameWithoutExt}_testList_${i}* TAP file"
exit 1
fi
Expand Down

0 comments on commit eb11efe

Please sign in to comment.