summaryrefslogtreecommitdiff
path: root/test/default_run.py
diff options
context:
space:
mode:
author Richard Neill <richard.neill@arm.com> 2023-06-02 14:12:48 +0100
committer Ulya Trofimovich <skvadrik@google.com> 2023-06-29 13:55:29 +0000
commit3dfeb7dfd54aa0f4854bb69f799c75629ea1ebd9 (patch)
tree81385ea48fdfda9cc40cdb1e73c1069188420c1b /test/default_run.py
parent8838bbf1f5ff911e2663f14ed18660b1c26a010d (diff)
test/run-test: Dump CFG even if test fails
It can be useful to inspect the generated CFG when debugging test failures (especially IR checker tests). However, the CFG is not copied from the test directory to the requested location when the test fails, so it must either be manually copied from the test directory (which may be on a target device), or the failing checks must be removed from the test temporarily in order to progress to the code that copies the CFG. This CL rectifies this behavior, when the test is deemed to have failed via: * Returning a non-zero exit code. * Producing stdout/stderr that does not match the expected output. * The CFG checker tool finding non-matching IR. Test: ./testrunner.py --target --dump-cfg=<path> <test> # With failures Test: ./testrunner.py --host --dump-cfg=<path> <test> # With failures (Testing was not performed for the ON_VM code path) Change-Id: I589d10c5d3d80523d929a574711c303161919acb
Diffstat (limited to 'test/default_run.py')
0 files changed, 0 insertions, 0 deletions