run_polymer_tools_tests.py 679 B

12345678910111213141516171819202122232425262728
  1. #!/usr/bin/env vpython3
  2. # Copyright 2019 The Chromium Authors. All rights reserved.
  3. # Use of this source code is governed by a BSD-style license that can be
  4. # found in the LICENSE file.
  5. '''Unit test suite that collects all test cases for Polymer.'''
  6. import os
  7. import sys
  8. CUR_DIR = os.path.dirname(os.path.realpath(__file__))
  9. SRC_DIR = os.path.dirname(os.path.dirname(CUR_DIR))
  10. TYP_DIR = os.path.join(
  11. SRC_DIR, 'third_party', 'catapult', 'third_party', 'typ')
  12. if TYP_DIR not in sys.path:
  13. sys.path.insert(0, TYP_DIR)
  14. import typ
  15. def main(args):
  16. os.chdir(CUR_DIR)
  17. return typ.main(top_level_dirs=[CUR_DIR])
  18. if __name__ == '__main__':
  19. sys.exit(main(sys.argv[1:]))