[yocto-autobuilder-helper][dunfell 1/2] scripts/build-perf-test-wrapper: Update to only send text based emails


Steve Sakoman
 

From: Richard Purdie <richard.purdie@...>

Signed-off-by: Richard Purdie <richard.purdie@...>
(cherry picked from commit c77f588773924fd724b3c42daace24d6cce50d52)
Signed-off-by: Steve Sakoman <steve@...>
---
scripts/build-perf-test-wrapper | 14 +-------------
1 file changed, 1 insertion(+), 13 deletions(-)

diff --git a/scripts/build-perf-test-wrapper b/scripts/build-perf-test-wrapper
index 660ef82..53a47ea 100755
--- a/scripts/build-perf-test-wrapper
+++ b/scripts/build-perf-test-wrapper
@@ -68,18 +68,6 @@ if args.results_dir:
git_repo = args.results_dir + "/archive-repo"
global_results = args.results_dir

-if args.email_addr:
- try:
- subprocess.check_output(["which", "phantomjs"])
- except subprocess.CalledProcessError:
- print("Please install phantomjs to email reports")
- sys.exit(1)
- try:
- subprocess.check_output(["which", "optipng"])
- except subprocess.CalledProcessError:
- print("Please install optipng to email reports")
- sys.exit(1)
-
op = fcntl.LOCK_EX
try:
lf = open("/tmp/oe-build-perf-test-wrapper.lock", 'a+')
@@ -218,7 +206,7 @@ if git_repo:
os_name = subprocess.check_output(". /etc/os-release; eval echo '$'PRETTY_NAME", shell=True).decode("utf-8").strip()
cmd = scriptsdir + "/oe-build-perf-report-email.py --to '" + args.email_addr + \
"' --subject 'Build Perf Test Report for " + os_name + "' --text " + \
- report_txt + " --html " + report_html
+ report_txt
try:
subprocess.check_call(cmd, shell=True)
except subprocess.CalledProcessError:
--
2.25.1