use test environment for test phase (#62824)
Summary:
Currently all test generated in test matrix share the same `BUILD_ENVIRONMENT` variable. we should distinguish them because some test scripts uses BUILD_ENVIRONMENT to differentiate what to run.
Pull Request resolved: https://github.com/pytorch/pytorch/pull/62824
Reviewed By: zhouzhuojie
Differential Revision: D30162250
Pulled By: walterddr
fbshipit-source-id: 3a99a21e91e02ed8638feed102e7966af01dd175
Author
Rong Rong (AI Infra)