[BE] fix subprocess wrapped test cases reported as failure (#50515)
Summary:
Fixes https://github.com/pytorch/pytorch/issues/49901.
Pull Request resolved: https://github.com/pytorch/pytorch/pull/50515
Reviewed By: janeyx99
Differential Revision: D25907836
Pulled By: walterddr
fbshipit-source-id: f6f3aa4c1222bf866077275d28ba637eeaef10c5
Author
Rong Rong (AI Infra)