Tests: Make sure that all scheduled jobs are finished before

running a new test. Fixes failures on slow architectures like armel and
 mipsel.
Bug-Debian: https://bugs.debian.org/670878
Patch-Name: tests-wait-on-unfinished-jobs-everytime.patch

Gbp-Pq: Name 0012-Tests-Make-sure-that-all-scheduled-jobs-are-finished.patch
This commit is contained in:
Didier Raboud 2016-08-09 18:11:17 +02:00 committed by openKylinBot
parent 93e2054166
commit 501f1428b8
1 changed files with 5 additions and 0 deletions

View File

@ -776,6 +776,11 @@ echo " $date by $user on `hostname`." >>$strfile
echo " <pre>" >>$strfile echo " <pre>" >>$strfile
for file in 5*.sh; do for file in 5*.sh; do
#
# Make sure the past jobs are done before going on.
#
./waitjobs.sh 1800
echo $ac_n "Performing $file: $ac_c" echo $ac_n "Performing $file: $ac_c"
echo "" >>$strfile echo "" >>$strfile
echo "`date '+[%d/%b/%Y:%H:%M:%S %z]'` \"$file\":" >>$strfile echo "`date '+[%d/%b/%Y:%H:%M:%S %z]'` \"$file\":" >>$strfile