fix windows CI passed incorrectly (#47105)
Summary:
Fixes https://github.com/pytorch/pytorch/issues/47103 and fixes https://github.com/pytorch/pytorch/issues/45864
1. make the sh failsafe.
2. disable the failed test in windows.
3. verified [link](https://app.circleci.com/pipelines/github/pytorch/pytorch/233616/workflows/e33286c1-f5e2-4cf2-82ca-ef4f54dfa495/jobs/8608415/tests)
Pull Request resolved: https://github.com/pytorch/pytorch/pull/47105
Reviewed By: samestep
Differential Revision: D24648414
Pulled By: walterddr
fbshipit-source-id: 1977007c2c7e8043efc590eb7261956a44e8f9ab