Improve messaging in test_server_running().

We now make it a bit easier to see that you are waiting for
the server, as well as indicating when the server is up.
This commit is contained in:
Steve Howell
2018-01-11 10:53:46 -05:00
committed by showell
parent 5336c03da9
commit 3cb6871f90

View File

@@ -76,13 +76,15 @@ def test_server_running(force: bool=False, external_host: str='testserver',
try:
# Wait for the server to start up.
sys.stdout.write('Waiting for test server')
sys.stdout.write('\nWaiting for test server (may take a while)')
if not dots:
sys.stdout.write('\n\n')
while not server_is_up(server, log_file):
if dots:
sys.stdout.write('.')
sys.stdout.flush()
time.sleep(0.1)
sys.stdout.write('\n')
sys.stdout.write('\n\n--- SERVER IS UP! ---\n\n')
# DO OUR ACTUAL TESTING HERE!!!
yield