blob: a32993fb8a2b17000397604aa25b9fa8a2099e5a [file] [log] [blame]
#!/usr/bin/env python
# Copyright (c) 2015 The Chromium Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
"""Top-level Javascript test runners for Infra."""
import os
import subprocess
import sys
THIS_DIR = os.path.dirname(os.path.abspath(__file__))
KARMA_PROJECTS = [
'appengine/chromium_cq_status',
'appengine/chromium_rietveld/new_static',
]
def main():
run_py = os.path.join(THIS_DIR, 'run.py')
cmd = [sys.executable, run_py, 'infra.tools.testjs']
cmd.extend([os.path.join(THIS_DIR, project) for project in KARMA_PROJECTS])
return subprocess.call(cmd)
if __name__ == '__main__':
sys.exit(main())