summaryrefslogtreecommitdiffstats
path: root/scripts
diff options
context:
space:
mode:
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/oe-build-perf-test7
1 files changed, 6 insertions, 1 deletions
diff --git a/scripts/oe-build-perf-test b/scripts/oe-build-perf-test
index 88af40ab76..808531efff 100755
--- a/scripts/oe-build-perf-test
+++ b/scripts/oe-build-perf-test
@@ -105,6 +105,8 @@ def parse_args(argv):
105 help="Lock file to use") 105 help="Lock file to use")
106 parser.add_argument('-o', '--out-dir', default='results-{date}', 106 parser.add_argument('-o', '--out-dir', default='results-{date}',
107 help="Output directory for test results") 107 help="Output directory for test results")
108 parser.add_argument('--run-tests', nargs='+', metavar='TEST',
109 help="List of tests to run")
108 110
109 return parser.parse_args(argv) 111 return parser.parse_args(argv)
110 112
@@ -133,7 +135,10 @@ def main(argv=None):
133 135
134 # Load build perf tests 136 # Load build perf tests
135 loader = BuildPerfTestLoader() 137 loader = BuildPerfTestLoader()
136 suite = loader.discover(start_dir=os.path.dirname(oeqa.buildperf.__file__)) 138 if args.run_tests:
139 suite = loader.loadTestsFromNames(args.run_tests, oeqa.buildperf)
140 else:
141 suite = loader.loadTestsFromModule(oeqa.buildperf)
137 142
138 archive_build_conf(out_dir) 143 archive_build_conf(out_dir)
139 runner = BuildPerfTestRunner(out_dir, verbosity=2) 144 runner = BuildPerfTestRunner(out_dir, verbosity=2)