Skip to content
Snippets Groups Projects
Commit acb35e0d authored by Rosen Matev's avatar Rosen Matev ☀️
Browse files

Make test validators python 3 compatible

parent 8e9a66af
No related branches found
No related tags found
No related merge requests found
Pipeline #2776127 passed with stage
in 19 seconds
......@@ -24,8 +24,8 @@ Check that a python-based DDG4 script works.
import subprocess
try:
output = subprocess.check_output(["rootls", "-t", "ddg4_vp.root:*"])
except subprcess.CalledProcessError:
output = subprocess.check_output(["rootls", "-t", "ddg4_vp.root:*"], text=True)
except subprocess.CalledProcessError:
causes.append("failed to list output file")
result["output.summary"] = result.Quote(output)
......
......@@ -28,8 +28,8 @@ Analyse the ROOT output of a DDG4 script.
import subprocess
try:
output = subprocess.check_output(["rootls", "-t", "ddg4_vp_histos.root:*"])
except subprcess.CalledProcessError:
output = subprocess.check_output(["rootls", "-t", "ddg4_vp_histos.root:*"], text=True)
except subprocess.CalledProcessError:
causes.append("failed to list histogram output file")
result["output.summary"] = result.Quote(output)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment