Lines Matching full:result
95 result = kunit_parser.extract_tap_lines(file.readlines())
96 self.assertContains('TAP version 14', result)
97 self.assertContains('# Subtest: example', result)
98 self.assertContains('1..2', result)
99 self.assertContains('ok 1 - example_simple_test', result)
100 self.assertContains('ok 2 - example_mock_test', result)
101 self.assertContains('ok 1 - example', result)
106 result = kunit_parser.extract_tap_lines(file.readlines())
107 self.assertContains('TAP version 14', result)
108 self.assertContains('# Subtest: kunit-resource-test', result)
109 self.assertContains('1..5', result)
110 self.assertContains('ok 1 - kunit_resource_test_init_resources', result)
111 self.assertContains('ok 2 - kunit_resource_test_alloc_resource', result)
112 self.assertContains('ok 3 - kunit_resource_test_destroy_resource', result)
113 self.assertContains('foo bar #', result)
114 self.assertContains('ok 4 - kunit_resource_test_cleanup_resources', result)
115 self.assertContains('ok 5 - kunit_resource_test_proper_free_ordering', result)
116 self.assertContains('ok 1 - kunit-resource-test', result)
117 self.assertContains('foo bar # non-kunit output', result)
118 self.assertContains('# Subtest: kunit-try-catch-test', result)
119 self.assertContains('1..2', result)
121 result)
123 result)
124 self.assertContains('ok 2 - kunit-try-catch-test', result)
125 self.assertContains('# Subtest: string-stream-test', result)
126 self.assertContains('1..3', result)
127 self.assertContains('ok 1 - string_stream_test_empty_on_creation', result)
128 self.assertContains('ok 2 - string_stream_test_not_empty_after_add', result)
129 self.assertContains('ok 3 - string_stream_test_get_string', result)
130 self.assertContains('ok 3 - string-stream-test', result)
135 result = kunit_parser.parse_run_tests(file.readlines())
138 result.status)
143 result = kunit_parser.parse_run_tests(file.readlines())
146 result.status)
151 result = kunit_parser.parse_run_tests(file.readlines())
154 result.status)
159 result = kunit_parser.parse_run_tests(file.readlines())
162 result.status)
167 result = kunit_parser.parse_run_tests(
169 self.assertEqual(0, len(result.subtests))
172 result.status)
178 result = kunit_parser.parse_run_tests(
182 self.assertEqual(0, result.counts.errors)
184 self.assertEqual(10, result.counts.total())
187 result.status)
192 result = kunit_parser.parse_run_tests(
194 self.assertEqual(0, len(result.subtests))
197 result.status)
202 result = kunit_parser.parse_run_tests(
204 self.assertEqual(0, len(result.subtests[0].subtests[0].subtests))
207 result.subtests[0].subtests[0].status)
208 self.assertEqual(1, result.counts.errors)
215 result = kunit_parser.parse_run_tests(
219 self.assertEqual(0, len(result.subtests))
224 result = kunit_parser.parse_run_tests(file.readlines())
229 result.status)
234 result = kunit_parser.parse_run_tests(file.readlines())
238 result.status)
243 result = kunit_parser.parse_run_tests(file.readlines())
248 result.status)
251 result.subtests[0].name)
254 result.subtests[1].name)
261 result = kunit_parser.parse_run_tests(file.readlines())
264 result.status)
265 self.assertEqual('kunit-resource-test', result.subtests[0].name)
270 result = kunit_parser.parse_run_tests(file.readlines())
273 result.status)
274 self.assertEqual('kunit-resource-test', result.subtests[0].name)
279 result = kunit_parser.parse_run_tests(file.readlines())
282 result.status)
283 self.assertEqual('kunit-resource-test', result.subtests[0].name)
288 result = kunit_parser.parse_run_tests(file.readlines())
291 result.status)
292 self.assertEqual('kunit-resource-test', result.subtests[0].name)
297 result = kunit_parser.parse_run_tests(file.readlines())
300 result.status)
301 self.assertEqual('kunit-resource-test', result.subtests[0].name)
306 result = kunit_parser.parse_run_tests(file.readlines())
309 result.status)
310 self.assertEqual('kunit-resource-test', result.subtests[0].name)
498 result = self._json_for('test_is_test_passed-failure.log')
501 result["sub_groups"][1]["test_cases"][0])
504 result = self._json_for('test_kernel_panic_interrupt.log')
507 result["sub_groups"][2]["test_cases"][1])
510 result = self._json_for('test_skip_tests.log')
513 result["sub_groups"][1]["test_cases"][1])
516 result = self._json_for('test_is_test_passed-no_tests_run_with_header.log')
517 self.assertEqual(0, len(result['sub_groups']))
520 result = self._json_for('test_is_test_passed-all_passed_nested.log')
523 result["sub_groups"][0]["sub_groups"][0]["test_cases"][0])