illume avatar illume committed bbb8804

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

Comments (0)

Files changed (1)

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
 
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.