Index: tests/gtest_fake/gtest_fake_base.py |
diff --git a/tests/gtest_fake/gtest_fake_base.py b/tests/gtest_fake/gtest_fake_base.py |
index 59715ec0f1fa943f6db67fcd815a49f58a13667c..c41f468be8e580701bf483942ece5593b9c0d3b4 100644 |
--- a/tests/gtest_fake/gtest_fake_base.py |
+++ b/tests/gtest_fake/gtest_fake_base.py |
@@ -7,19 +7,28 @@ |
http://code.google.com/p/googletest/ |
""" |
-def get_test_output(test_name, failed): |
+ |
+def get_test_output_inner(test_name, failed): |
fixture, case = test_name.split('.', 1) |
return ( |
+ '[ RUN ] %(fixture)s.%(case)s\n' |
+ '%(result)s %(fixture)s.%(case)s (100 ms)\n') % { |
+ 'fixture': fixture, |
+ 'case': case, |
+ 'result': '[ FAILED ]' if failed else '[ OK ]', |
+ } |
+ |
+def get_test_output(test_name, failed): |
+ fixture, _ = test_name.split('.', 1) |
+ return ( |
'[==========] Running 1 test from 1 test case.\n' |
'[----------] Global test environment set-up.\n' |
+ '%(content)s' |
'[----------] 1 test from %(fixture)s\n' |
- '[ RUN ] %(fixture)s.%(case)s\n' |
- '%(result)s %(fixture)s.%(case)s (100 ms)\n' |
'[----------] 1 test from %(fixture)s (100 ms total)\n' |
'\n') % { |
+ 'content': get_test_output_inner(test_name, failed), |
'fixture': fixture, |
- 'case': case, |
- 'result': '[ FAILED ]' if failed else '[ OK ]', |
} |