blob: 33decee34fcad9b7b64ea23d3057d357cf0dbda5 [file] [log] [blame]
#!/usr/bin/env python3
# Copyright 2019 The ChromiumOS Authors
# 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 # pylint: disable=wrong-import-order
# 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, f"file://{TEST_PAGE}", mkdeps=mkdeps
if __name__ == "__main__":