pytorch
b96acb75 - Allow disabled tests to be re-enabled with IGNORE_DISABLED_ISSUES (#62686)

Commit
3 years ago
Allow disabled tests to be re-enabled with IGNORE_DISABLED_ISSUES (#62686) Summary: Part 1 of fixing https://github.com/pytorch/pytorch/issues/62359 Pull Request resolved: https://github.com/pytorch/pytorch/pull/62686 Test Plan: 1. Check out this PR and run `python setup.py install`. 2. The test we will be running requires CUDA. If you don't have CUDA, you can try this on another device or simply comment out the skipIf statement before the `test_jit_cuda_extension` test in `test_cpp_extensions_jit.py` 3. Run: `IN_CI=1 python test/run_test.py -i test_cpp_extensions_jit -- -k test_jit_cuda_extension` and notice that it should skip. If it doesn't skip, edit test/.pytorch-disabled-tests.json: modify the platforms list of the first issue (61655) to include whatever platform you are on (macos or linux), and just run `python test/test_cpp_extensions_jit.py -v -k test_jit_cuda_extension --import-disabled-tests` to make sure it skips. 4. Now `export PYTORCH_IGNORE_DISABLED_ISSUES=61655` or `export PYTORCH_IGNORE_DISABLED_ISSUES=34952,61655`. 5. `rm test/.pytorch-*` to clear the cached files. 6. Run the same command as in step 5 and note that it SHOULDN'T skip. It should run. Reviewed By: walterddr, samestep Differential Revision: D30108773 Pulled By: janeyx99 fbshipit-source-id: dbf015a266f57577dc9283b0cdff720083b5c0cb
Author
Parents
Loading