restore JOB_BASE_NAME for test1 and test2 in test.sh (#60409)
Summary:
JOB_BASE_NAME for test1 and test2 were removed by https://github.com/pytorch/pytorch/issues/60124. This caused the ROCm CI to run all tests for both test1 and test2. Restore the use of JOB_BASE_NAME.
Fixes https://github.com/pytorch/pytorch/issues/60377.
Pull Request resolved: https://github.com/pytorch/pytorch/pull/60409
Reviewed By: anjali411
Differential Revision: D29277560
Pulled By: walterddr
fbshipit-source-id: ddf01466492a9a626ce1b6adf87cd102d8f1fe35