scons: Add readCommandWithReturn helper
authorGiacomo Travaglini <giacomo.travaglini@arm.com>
Mon, 11 May 2020 09:01:46 +0000 (10:01 +0100)
committerGiacomo Travaglini <giacomo.travaglini@arm.com>
Tue, 12 May 2020 07:48:59 +0000 (07:48 +0000)
commit2d6cd436f795b9159da753aae799acfbcc73560a
treecb32d63d4beafb0431168e94f810596bc2146257
parent384705a3869726ceafc835b736c901fc394e7f07
scons: Add readCommandWithReturn helper

In this way it will be possible to reliably catch any error
in the command execution which is not raising an exception
to Popen.

Change-Id: I4dc15648423f9bb8e8a470d97291dbd065c48eba
Signed-off-by: Giacomo Travaglini <giacomo.travaglini@arm.com>
Reviewed-on: https://gem5-review.googlesource.com/c/public/gem5/+/28847
Reviewed-by: Jason Lowe-Power <power.jg@gmail.com>
Maintainer: Jason Lowe-Power <power.jg@gmail.com>
Tested-by: kokoro <noreply+kokoro@google.com>
src/python/m5/util/__init__.py