Merge pull request #4815 from dokku/josegonzalez-patch-1
tests: use python3 shebang for shellcheck-to-junit script
This commit is contained in:
1 file changed
+2
-2
@@ -1,4 +1,4 @@
|
|||||||
#!/usr/bin/env python
|
#!/usr/bin/env python3
|
||||||
# -*- coding: utf-8 -*-
|
# -*- coding: utf-8 -*-
|
||||||
import argparse
|
import argparse
|
||||||
import collections
|
import collections
|
||||||
@@ -158,7 +158,7 @@ def output_junit(files, args):
|
|||||||
content = ElementTree.tostring(root, encoding='UTF-8', method='xml')
|
content = ElementTree.tostring(root, encoding='UTF-8', method='xml')
|
||||||
if args.output:
|
if args.output:
|
||||||
with open(args.output, 'w') as f:
|
with open(args.output, 'w') as f:
|
||||||
f.write(content)
|
f.write(content.decode("utf-8"))
|
||||||
|
|
||||||
|
|
||||||
def main():
|
def main():
|
||||||
|
|||||||
Reference in new issue
Block a user