tests.py (11917:6b5cded90c35) tests.py (11976:d1f151ee0e08)
1#!/usr/bin/env python2
2#
3# Copyright (c) 2016 ARM Limited
4# All rights reserved
5#
6# The license below extends only to copyright in the software and shall
7# not be construed as granting a license to any other intellectual
8# property including but not limited to intellectual property relating

--- 266 unchanged lines hidden (view full) ---

275 2: At least one test failed to run. This is what the summary
276 formatter usually shows as a 'FAILED'.
277
278 3: All tests ran correctly, but at least one failed to
279 verify its output. When displaying test output using the
280 summary formatter, such a test would show up as 'CHANGED'.
281 """)
282
1#!/usr/bin/env python2
2#
3# Copyright (c) 2016 ARM Limited
4# All rights reserved
5#
6# The license below extends only to copyright in the software and shall
7# not be construed as granting a license to any other intellectual
8# property including but not limited to intellectual property relating

--- 266 unchanged lines hidden (view full) ---

275 2: At least one test failed to run. This is what the summary
276 formatter usually shows as a 'FAILED'.
277
278 3: All tests ran correctly, but at least one failed to
279 verify its output. When displaying test output using the
280 summary formatter, such a test would show up as 'CHANGED'.
281 """)
282
283 _add_format_args(parser)
284
285 parser.add_argument("result", type=argparse.FileType("rb"), nargs="*",
286 help="Pickled test results")
287
288def _test(args):
289 try:
290 suites = sum([ pickle.load(f) for f in args.result ], [])
291 except EOFError:
292 print >> sys.stderr, 'Could not read all files'

--- 56 unchanged lines hidden ---
283 parser.add_argument("result", type=argparse.FileType("rb"), nargs="*",
284 help="Pickled test results")
285
286def _test(args):
287 try:
288 suites = sum([ pickle.load(f) for f in args.result ], [])
289 except EOFError:
290 print >> sys.stderr, 'Could not read all files'

--- 56 unchanged lines hidden ---