eliminate unnecessary waiting in allow-query test

- grep in the log to see if configuration is finished rather
  than sleeping for 5 seconds
5 jobs for allow-query in 19 minutes and 46 seconds (queued for 5 seconds)
Status Job ID Name Coverage
  Build
passed build:debian:sid:amd64 #3262
docker linux

00:05:02

passed build:debian:sid:i386 #3263
docker linux

00:05:26

 
  Test
passed test:debian:sid:amd64 #3280
linux docker

00:05:09

passed test:debian:sid:i386 #3265
docker linux

00:09:10

failed test:debian:sid:amd64 #3264
docker linux

00:09:21