test_buildhtml.py: Wait for the subprocess to finish