]> code.ossystems Code Review - openembedded-core.git/commitdiff
oe-build-perf-report-email.py: fix one file path
authorMarkus Lehtonen <markus.lehtonen@linux.intel.com>
Thu, 6 Apr 2017 07:10:18 +0000 (10:10 +0300)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Sat, 8 Apr 2017 21:48:04 +0000 (22:48 +0100)
Sending report email was not working correctly if the script was given
an html report path that contained directory components.

Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
scripts/contrib/oe-build-perf-report-email.py

index 7f4274efed0ff6e64d7501631c9deff311cf5611..81b58ab02075a721c502200b671e7c55ba4b6044 100755 (executable)
@@ -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))