oe-build-perf-report-email.py: fix one file path

Sending report email was not working correctly if the script was given
an html report path that contained directory components.

(From OE-Core rev: 1da641661bb5963fcbd7ac2c20bc997c3eae6f18)

Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
Markus Lehtonen 2017-04-06 10:10:18 +03:00 committed by Richard Purdie
parent 36b2865318
commit f81a532dd6

View File

@ -243,7 +243,7 @@ def main(argv=None):
html_report = None
if args.html:
scrape_html_report(args.html, outdir, args.phantomjs_args)
html_report = os.path.join(outdir, args.html)
html_report = os.path.join(outdir, os.path.basename(args.html))
if args.to:
log.info("Sending email to %s", ', '.join(args.to))