Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(667)

Unified Diff: visual_studio/NativeClientVSAddIn/check_test_results.py

Issue 10836143: Refactored the VS add-in (Closed) Base URL: https://nativeclient-sdk.googlecode.com/svn/trunk/src
Patch Set: Created 8 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « visual_studio/NativeClientVSAddIn/build.bat ('k') | visual_studio/NativeClientVSAddIn/developer_deploy.bat » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: visual_studio/NativeClientVSAddIn/check_test_results.py
diff --git a/visual_studio/NativeClientVSAddIn/check_test_results.py b/visual_studio/NativeClientVSAddIn/check_test_results.py
index 6249897961d65ad576aee60a7a4a826d789faf09..09172b578440ae37f8c7032df09ac45f278631dd 100644
--- a/visual_studio/NativeClientVSAddIn/check_test_results.py
+++ b/visual_studio/NativeClientVSAddIn/check_test_results.py
@@ -32,11 +32,16 @@ def main():
# Print the results, note any failures by setting exit_code to 1
print test_run_name
for result in results:
+ fail_message = 'None.'
if result.attrib['outcome'] != 'Passed':
exit_code = 1
- print 'Test: %s, Duration: %s, Outcome: %s\n' % (
- result.attrib['testName'], result.attrib['duration'],
- result.attrib['outcome'])
+ fail_element = result.find('{%s}Output/{%s}ErrorInfo/{%s}Message' % (
+ MSTEST_NAMESPACE, MSTEST_NAMESPACE, MSTEST_NAMESPACE))
+ if fail_element is not None:
+ fail_message = fail_element.text
+ print 'Test: %s, Duration: %s, Outcome: %s, Reason: %s\n' % (
+ result.attrib['testName'], result.attrib['duration'],
+ result.attrib['outcome'], fail_message)
return exit_code
« no previous file with comments | « visual_studio/NativeClientVSAddIn/build.bat ('k') | visual_studio/NativeClientVSAddIn/developer_deploy.bat » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698