From 8cff88dea0e6b33091874b636c5e2c9f0035b586 Mon Sep 17 00:00:00 2001 From: Jose Diaz-Gonzalez Date: Wed, 29 Sep 2021 12:21:58 -0400 Subject: [PATCH 1/2] tests: use python3 shebang for shellcheck-to-junit script --- tests/shellcheck-to-junit | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/shellcheck-to-junit b/tests/shellcheck-to-junit index 6316db3c621..e3d9234fc48 100755 --- a/tests/shellcheck-to-junit +++ b/tests/shellcheck-to-junit @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 # -*- coding: utf-8 -*- import argparse import collections From 96924e54c493ab55b91578c7ddb24ffdf1a0858c Mon Sep 17 00:00:00 2001 From: Jose Diaz-Gonzalez Date: Thu, 30 Sep 2021 01:25:05 -0400 Subject: [PATCH 2/2] fix: decode bytes to a string --- tests/shellcheck-to-junit | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/shellcheck-to-junit b/tests/shellcheck-to-junit index e3d9234fc48..d006f7fb46c 100755 --- a/tests/shellcheck-to-junit +++ b/tests/shellcheck-to-junit @@ -158,7 +158,7 @@ def output_junit(files, args): content = ElementTree.tostring(root, encoding='UTF-8', method='xml') if args.output: with open(args.output, 'w') as f: - f.write(content) + f.write(content.decode("utf-8")) def main():