Distilling @Freddy's solution slightly:
#!/bin/bash
while ! find /home -maxdepth 1 -type f -mmin -1 -name 'test.log' | grep -q .
do
echo "Now sleeping for 20 seconds"
sleep 20
done
echo "Job is finished"
This solution uses grep's -q switch to suppress the usual output of grep, sowhich simply tests the output of find for an empty/not empty condition. The while loop will continue to loop so long as the grepfind command failsoutputs at least one line of text. As soon as Once the findtest.log produces some outputfile is older than one minute, the grepfind command will succeedno longer produces any output, and the negated whilegrep condition will be falsecommand fails, causing the loop to terminate.