blob: 162d7eb5467944a6383421b8b29b5da6d117624a [file] [log] [blame]
#!/usr/bin/env python3
# Copyright 2019 The Chromium OS Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
"""Run unittests in a new browser."""
import os
import subprocess
import sys
import hterm
import libdot
# Path to our html test page.
TEST_PAGE = os.path.join(hterm.DIR, 'html', 'hterm_test.html')
def mkdeps(_opts):
"""Build the required deps for the test suite."""
subprocess.check_call([os.path.join(hterm.BIN_DIR, 'mkdist')])
def main(argv):
"""The main func!"""
return libdot.load_tests.test_runner_main(
argv, 'file://%s' % (TEST_PAGE,), mkdeps=mkdeps)
if __name__ == '__main__':
sys.exit(main(sys.argv[1:]))