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>
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))