diff options
Diffstat (limited to 'tools/perf/run_tests')
-rwxr-xr-x | tools/perf/run_tests | 16 |
1 files changed, 5 insertions, 11 deletions
diff --git a/tools/perf/run_tests b/tools/perf/run_tests index 77a5366..ed1429c 100755 --- a/tools/perf/run_tests +++ b/tools/perf/run_tests @@ -5,24 +5,18 @@ """This script runs unit tests of the code in the perf directory. -This script DOES NOT run benchmarks. run_benchmarks and run_measurement do that. +This script DOES NOT run benchmarks. run_benchmark and run_measurement do that. """ import os import sys sys.path.append(os.path.join(os.path.dirname(__file__), os.pardir, 'telemetry')) -from telemetry.unittest import gtest_testrunner + from telemetry.unittest import run_tests if __name__ == '__main__': - top_level_dir = os.path.abspath(os.path.dirname(__file__)) - runner = gtest_testrunner.GTestTestRunner(print_result_after_run=False) - ret = run_tests.Main(sys.argv[1:], top_level_dir, top_level_dir, runner) - - if runner.result: - runner.result.PrintSummary() - sys.exit(min(ret + runner.result.num_errors, 255)) - else: - sys.exit(ret) + base_dir = os.path.dirname(os.path.realpath(__file__)) + run_tests.environment = run_tests.Environment(base_dir, [base_dir]) + sys.exit(run_tests.RunTestsCommand.main()) |