Commits

illume committed bbb8804

Updated test runner to use an end marker for subprocess running.

  • Participants
  • Parent commits 1bf3d34

Comments (0)

Files changed (1)

File test/test_utils/test_runner.py

 ################################################################################
 
 TEST_RESULTS_START = "<--!! TEST RESULTS START HERE !!-->"
-TEST_RESULTS_RE = re.compile('%s\n(.*)' % TEST_RESULTS_START, re.DOTALL | re.M)
+TEST_RESULTS_END = "<--!! TEST RESULTS END HERE !!-->"
+_test_re_str = '%s\n(.*)%s' % (TEST_RESULTS_START, TEST_RESULTS_END)
+TEST_RESULTS_RE = re.compile(_test_re_str, re.DOTALL | re.M)
 
 def get_test_results(raw_return):
     test_results = TEST_RESULTS_RE.search(raw_return)
     if not option_nosubprocess:
         print (TEST_RESULTS_START)
         print (pformat(results))
+        print (TEST_RESULTS_END)
     else:
         return results