verify.py (13100:fc7df026c235) verify.py (13101:d0db2b204d51)
1#!/usr/bin/env python2
2#
3# Copyright 2018 Google, Inc.
4#
5# Redistribution and use in source and binary forms, with or without
6# modification, are permitted provided that the following conditions are
7# met: redistributions of source code must retain the above copyright
8# notice, this list of conditions and the following disclaimer;

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

507 else:
508 filt = compile(main_args.filter, '<string>', 'eval')
509
510 filtered_tests = {
511 target: props for (target, props) in
512 test_data.iteritems() if eval(filt, dict(props))
513 }
514
1#!/usr/bin/env python2
2#
3# Copyright 2018 Google, Inc.
4#
5# Redistribution and use in source and binary forms, with or without
6# modification, are permitted provided that the following conditions are
7# met: redistributions of source code must retain the above copyright
8# notice, this list of conditions and the following disclaimer;

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

507 else:
508 filt = compile(main_args.filter, '<string>', 'eval')
509
510 filtered_tests = {
511 target: props for (target, props) in
512 test_data.iteritems() if eval(filt, dict(props))
513 }
514
515 if len(filtered_tests) == 0:
516 print('All tests were filtered out.')
517 exit()
518
515 if main_args.list:
516 for target, props in sorted(filtered_tests.iteritems()):
517 print('%s.%s' % (target, main_args.flavor))
518 for key, val in props.iteritems():
519 print(' %s: %s' % (key, val))
520 print('Total tests: %d' % len(filtered_tests))
521 else:
522 tests_to_run = list([
523 Test(target, main_args.flavor, main_args.build_dir, props) for
524 target, props in sorted(filtered_tests.iteritems())
525 ])
526
527 for phase in phases:
528 phase.run(tests_to_run)
519 if main_args.list:
520 for target, props in sorted(filtered_tests.iteritems()):
521 print('%s.%s' % (target, main_args.flavor))
522 for key, val in props.iteritems():
523 print(' %s: %s' % (key, val))
524 print('Total tests: %d' % len(filtered_tests))
525 else:
526 tests_to_run = list([
527 Test(target, main_args.flavor, main_args.build_dir, props) for
528 target, props in sorted(filtered_tests.iteritems())
529 ])
530
531 for phase in phases:
532 phase.run(tests_to_run)