tests: Update tests to save output on failure
authorJason Lowe-Power <jason@lowepower.com>
Wed, 17 Jul 2019 00:16:16 +0000 (17:16 -0700)
committerJason Lowe-Power <power.jg@gmail.com>
Sat, 2 May 2020 00:23:39 +0000 (00:23 +0000)
commit7de8ac1b93fded6b5a9c64061dc6130711ad1808
tree84af72ed2707401e6af05556fc72fe6a1bf45718
parent88d845aba16bdda902f22ab8338f8c46ff801e49
tests: Update tests to save output on failure

The previous commit which tried to do this, did not work with parallel
execution. In this case, the fixtures that were modified were in the
child process and the parent process's fixtures were never updated.
Instead of modifying the object, use the information passed in from the
testlib.

See 4c28149ffa5d09e6fe14952dcaf8df5d0cd8f328
Previous review:
https://gem5-review.googlesource.com/c/public/gem5/+/17451

Change-Id: Ib4c06c5e3f82994199d6f0c1fa69452e93444d75
Signed-off-by: Jason Lowe-Power <jason@lowepower.com>
Reviewed-on: https://gem5-review.googlesource.com/c/public/gem5/+/19529
Reviewed-by: Bobby R. Bruce <bbruce@ucdavis.edu>
Reviewed-by: Nikos Nikoleris <nikos.nikoleris@arm.com>
Maintainer: Jason Lowe-Power <power.jg@gmail.com>
Tested-by: kokoro <noreply+kokoro@google.com>
tests/gem5/fixture.py
tests/gem5/verifier.py