Commit b73080b0 authored by Brad King's avatar Brad King Committed by Kitware Robot

Merge topic 'cmake-server-test-wait'

d56f9237 Tests: Teach Server test to wait for server exit
parents 541394f3 d56f9237
......@@ -102,4 +102,18 @@ for obj in testData:
print("Completed")
# Tell the server to exit.
proc.stdin.close()
proc.stdout.close()
# Wait for the server to exit.
# If this version of python supports it, terminate the server after a timeout.
try:
proc.wait(timeout=5)
except TypeError:
proc.wait()
except:
proc.terminate()
raise
sys.exit(0)
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment