Runs all the minified tests. Args: update_tests: a boolean indicating whether or not to update the test output files. out_dir: directory name of the output directory. Must not have slashes, dots, etc.
(update_tests, out_dir)
| 567 | |
| 568 | |
| 569 | def RunTests(update_tests, out_dir): |
| 570 | """Runs all the minified tests. |
| 571 | |
| 572 | Args: |
| 573 | update_tests: a boolean indicating whether or not to update the test |
| 574 | output files. |
| 575 | out_dir: directory name of the output directory. Must not have slashes, |
| 576 | dots, etc. |
| 577 | """ |
| 578 | logging.info('entering ...') |
| 579 | env = os.environ.copy() |
| 580 | if update_tests: |
| 581 | env['UPDATE_VALIDATOR_TEST'] = '1' |
| 582 | subprocess.check_call(['node', '%s/test_runner' % out_dir], env=env) |
| 583 | logging.info('... success') |
| 584 | |
| 585 | |
| 586 | def Main(parsed_args): |