Dump more detailed error msg in PT2 integration tests (#114683)
Summary:
Sometimes a PT2 CI test shows as both pass and infra_error, e.g. https://github.com/pytorch/pytorch/actions/runs/7015184949/job/19086433407. Add more logging to investigate what has happened.
X-link: https://github.com/pytorch/pytorch/pull/114683
Approved by: https://github.com/eellison
Reviewed By: clee2000
Differential Revision: D51692747
Pulled By: desertfire
fbshipit-source-id: 6412a47374066383648e272e3dbc75bb535083bc