Annotate test-queue-worker-reload.

This commit is contained in:
Tim Abbott 2016-10-15 22:21:41 -07:00
parent a85f9a951a
commit 0c5f419be0
1 changed files with 3 additions and 0 deletions

View File

@ -11,6 +11,7 @@ import subprocess
import re import re
from six.moves import range from six.moves import range
from typing import IO, Text
TOOLS_DIR = os.path.dirname(os.path.abspath(__file__)) TOOLS_DIR = os.path.dirname(os.path.abspath(__file__))
succesful_worker_launches = [ succesful_worker_launches = [
@ -31,7 +32,9 @@ succesful_worker_launches = [
] ]
def check_worker_launch(logfile): def check_worker_launch(logfile):
# type: (IO) -> Text
def check(content): def check(content):
# type: (str) -> bool
flag = True flag = True
for entry in succesful_worker_launches: for entry in succesful_worker_launches:
flag = flag and entry in content flag = flag and entry in content