send-qa-email: Fix typo causing wrong report contents to be written

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
Richard Purdie 2019-02-25 09:34:22 +00:00
parent 2deb018441
commit 520ea457e8

View File

@ -66,7 +66,7 @@ if 'poky' in repos and os.path.exists(resulttool) and args.results_dir:
regreport = subprocess.check_output([resulttool, "regression-git", tempdir] + extraopts.split()) regreport = subprocess.check_output([resulttool, "regression-git", tempdir] + extraopts.split())
with open(args.results_dir + "/testresult-regressions-report.txt", "wb") as f: with open(args.results_dir + "/testresult-regressions-report.txt", "wb") as f:
f.write(report) f.write(regreport)
finally: finally:
subprocess.check_call(["rm", "-rf", tempdir]) subprocess.check_call(["rm", "-rf", tempdir])