Skip to content

Commit

Permalink
Fix #1635, checking for log file exists
Browse files Browse the repository at this point in the history
  • Loading branch information
zanzaben committed Jul 14, 2021
1 parent 683b594 commit 346af54
Showing 1 changed file with 6 additions and 7 deletions.
13 changes: 6 additions & 7 deletions .github/workflows/functional-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -70,20 +70,19 @@ jobs:
../host/cmdUtil --pktid=0x1806 --cmdcode=4 --endian=LE --string="20:CFE_TEST_APP" --string="20:CFE_TestMain" --string="64:cfe_testcase" --uint32=16384 --uint8=0 --uint8=0 --uint16=100 &
sleep 30
counter=$(grep -c "BEGIN" cf/cfe_test.log) &
counter=0
while [[ -z $(grep -i "SUMMARY" cf/cfe_test.log) ]]; do
echo "Waiting for CFE Tests"
sleep 60
temp=$(grep -c "BEGIN" cf/cfe_test.log) &
while [[ ! -f cf/cfe_test.log ]]; do
temp=$(grep -c "BEGIN" cf/cfe_test.tmp)
if [ $temp -eq $counter ]; then
echo "Test is frozen. Quiting"
break
fi
counter=$(grep -c "BEGIN" cf/cfe_test.log) &
counter=$(grep -c "BEGIN" cf/cfe_test.tmp)
echo "Waiting for CFE Tests"
sleep 60
done
../host/cmdUtil --endian=LE --pktid=0x1806 --cmdcode=2 --half=0x0002
Expand Down

0 comments on commit 346af54

Please sign in to comment.