Commit 915a82d
[devtools][tests][4/N] Report disabled inspector tests as executed
Applies the same disabled-test treatment as the prior diffs in this stack to the devtools inspector tests. Some test runners preserve stale failure state when tests report through unittest skip results, so this replaces the conditionally disabled coverage with a local decorator that keeps the tests discoverable, logs their disabled reason, and produces an executed result.
Adds a disable_if decorator that mirrors unittest.skipIf (evaluating the condition at decoration time) and converts the three Windows-gated test cases to use it.
Differential Revision: [D106736354](https://our.internmc.facebook.com/intern/diff/D106736354/)
ghstack-source-id: 387629542
Pull-Request: pytorch#198741 parent d1c80af commit 915a82d
1 file changed
Lines changed: 26 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
7 | 7 | | |
8 | 8 | | |
9 | 9 | | |
| 10 | + | |
10 | 11 | | |
11 | 12 | | |
12 | 13 | | |
| |||
90 | 91 | | |
91 | 92 | | |
92 | 93 | | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
| 114 | + | |
| 115 | + | |
93 | 116 | | |
94 | 117 | | |
95 | 118 | | |
| |||
1504 | 1527 | | |
1505 | 1528 | | |
1506 | 1529 | | |
1507 | | - | |
| 1530 | + | |
1508 | 1531 | | |
1509 | 1532 | | |
1510 | 1533 | | |
| |||
1693 | 1716 | | |
1694 | 1717 | | |
1695 | 1718 | | |
1696 | | - | |
| 1719 | + | |
1697 | 1720 | | |
1698 | 1721 | | |
1699 | 1722 | | |
| |||
1840 | 1863 | | |
1841 | 1864 | | |
1842 | 1865 | | |
1843 | | - | |
| 1866 | + | |
1844 | 1867 | | |
1845 | 1868 | | |
1846 | 1869 | | |
| |||
0 commit comments