Fix disabling bot with subprocessing (#68290)
Summary:
Fixes https://github.com/pytorch/pytorch/issues/68270
Tested locally + tests get disabled properly
Pull Request resolved: https://github.com/pytorch/pytorch/pull/68290
Reviewed By: mrshenli
Differential Revision: D32403956
Pulled By: janeyx99
fbshipit-source-id: 86629daa86f83f6777f2279524ef973af51046b9