[oe-commits] [openembedded-core] 24/50: oe-build-perf-test: implement --run-tests option
git at git.openembedded.org
git at git.openembedded.org
Thu Aug 25 22:04:40 UTC 2016
rpurdie pushed a commit to branch master
in repository openembedded-core.
commit be4373be54e5b84f951771b0e75140f212838020
Author: Markus Lehtonen <markus.lehtonen at linux.intel.com>
AuthorDate: Thu Aug 11 16:50:55 2016 +0300
oe-build-perf-test: implement --run-tests option
Makes it possible to run only a subset of tests.
NOTE: The tests currently have (unwritten) dependencies on each other so
use this option with care. Mainly for debugging.
Signed-off-by: Markus Lehtonen <markus.lehtonen at linux.intel.com>
Signed-off-by: Ross Burton <ross.burton at intel.com>
---
scripts/oe-build-perf-test | 7 ++++++-
1 file changed, 6 insertions(+), 1 deletion(-)
diff --git a/scripts/oe-build-perf-test b/scripts/oe-build-perf-test
index 88af40a..808531e 100755
--- a/scripts/oe-build-perf-test
+++ b/scripts/oe-build-perf-test
@@ -105,6 +105,8 @@ def parse_args(argv):
help="Lock file to use")
parser.add_argument('-o', '--out-dir', default='results-{date}',
help="Output directory for test results")
+ parser.add_argument('--run-tests', nargs='+', metavar='TEST',
+ help="List of tests to run")
return parser.parse_args(argv)
@@ -133,7 +135,10 @@ def main(argv=None):
# Load build perf tests
loader = BuildPerfTestLoader()
- suite = loader.discover(start_dir=os.path.dirname(oeqa.buildperf.__file__))
+ if args.run_tests:
+ suite = loader.loadTestsFromNames(args.run_tests, oeqa.buildperf)
+ else:
+ suite = loader.loadTestsFromModule(oeqa.buildperf)
archive_build_conf(out_dir)
runner = BuildPerfTestRunner(out_dir, verbosity=2)
--
To stop receiving notification emails like this one, please contact
the administrator of this repository.
More information about the Openembedded-commits
mailing list