Skip to content

Commit f31c09f

Browse files
committed
waits for test to finish.
1 parent 804305a commit f31c09f

File tree

1 file changed

+18
-2
lines changed

1 file changed

+18
-2
lines changed

.github/workflows/functional-tests.yml

Lines changed: 18 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -58,9 +58,25 @@ jobs:
5858
- name: Run cFS
5959
run: |
6060
./core-cpu1 | tee cFS_startup_cpu1.txt &
61-
sleep 20
62-
../host/cmdUtil --pktid=0x1806 --cmdcode=4 --endian=LE --string="20:CFE_APP" --string="20:CFE_TestMain" --string="64:cfe_testcase" --uint32=16384 --uint8=0 --uint8=0 --uint16=100 &
61+
sleep 10
62+
../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 &
63+
6364
sleep 30
65+
counter=$(grep -c "CFE_TEST_APP" cFS_startup_cpu1.txt)
66+
67+
while [[ -z $(grep -i "SUMMARY" cFS_startup_cpu1.txt) ]]; do
68+
echo "Waiting for CFE Tests"
69+
sleep 60
70+
temp=$(grep -c "CFE_TEST_APP" cFS_startup_cpu1.txt)
71+
72+
if [ $temp -eq $counter ];
73+
then
74+
echo "Test is frozen. Quiting"
75+
break
76+
fi
77+
78+
counter=$(grep -c "CFE_TEST_APP" cFS_startup_cpu1.txt)
79+
done
6480
../host/cmdUtil --endian=LE --pktid=0x1806 --cmdcode=2 --half=0x0002
6581
working-directory: ./build/exe/cpu1/
6682

0 commit comments

Comments
 (0)