xref: /aosp_15_r20/external/pytorch/test/test_ci_sanity_check_fail.py (revision da0073e96a02ea20f0ac840b70461e3646d07c45)
1# Owner(s): ["module: ci"]
2# Sanity check for CI setup in GHA.  This file is expected to fail so it can trigger reruns
3
4import os
5
6from torch.testing._internal.common_utils import run_tests, slowTest, TestCase
7
8
9class TestCISanityCheck(TestCase):
10    def test_env_vars_exist(self):
11        # This check should fail and trigger reruns.  If it passes, something is wrong
12        self.assertTrue(os.environ.get("CI") is None)
13
14    @slowTest
15    def test_env_vars_exist_slow(self):
16        # Same as the above, but for the slow suite
17        self.assertTrue(os.environ.get("CI") is None)
18
19
20if __name__ == "__main__":
21    run_tests()
22