[util] Ignore Verilator stderr in version check

With funny CI environments, the locale might not be set properly, making perl complain. The version check will fail then. I believe it is sufficient to check for the tool version, stderr can be ignored safely, if I am not missing something.
This commit is contained in:
Stefan Wallentowitz 2023-04-10 16:39:47 +02:00 committed by Greg Chadwick
parent e58a9ff792
commit 443a058f56

View file

@ -199,7 +199,6 @@ class VerilatorToolReq(ToolReq):
# relies on perl magic to parse command line arguments.
version_str = subprocess.run('verilator --version', shell=True,
check=True, stdout=subprocess.PIPE,
stderr=subprocess.STDOUT,
universal_newlines=True)
except subprocess.CalledProcessError as err:
raise RuntimeError('Unable to call Verilator to check version: {}'