Add IS_PYTORCH_CI flag for testing (#16006)
authorSsnL <tongzhou.wang.1994@gmail.com>
Thu, 17 Jan 2019 06:56:56 +0000 (22:56 -0800)
committerFacebook Github Bot <facebook-github-bot@users.noreply.github.com>
Thu, 17 Jan 2019 07:07:38 +0000 (23:07 -0800)
commitffd613800f6da0c4b7a9c1952523aee3d6d2d32b
tree2300bf10f1923c5c599e3827289faaaff9966641
parent7c56db73d5a9e1432dabc0231acad63575c3089e
Add IS_PYTORCH_CI flag for testing (#16006)

Summary:
Use case:
Some data loader tests rely on `psutil` (a third party lib). So they are guarded by `skipIf`. But we want to always test them on CI envs. With `IS_PYTORCH_CI`, we can raise if `psutil` is not found.
Pull Request resolved: https://github.com/pytorch/pytorch/pull/16006

Reviewed By: ezyang

Differential Revision: D13673957

Pulled By: yf225

fbshipit-source-id: c63a7138093f45333c0b371fed0bcc88b67f2a22
.jenkins/pytorch/common.sh
test/common_utils.py
test/run_test.py
test/test_dataloader.py