Commit 1797ba1
Fix error reporting in Windows preset build job (pytorch#13247)
Update the Windows preset build job to accurately report failure.
Previously, it was silently failing.
I've updated the script to explicitly check the last exit code. I'm not
entirely sure why ErrorActionPreference=Stop isn't doing this. I played
around with the escaping a bit and also added
PSNativeCommandUseErrorActionPreference = True, but haven't gotten it to
fail on exit code. It might be possible to make this work, but I'm just
adding an explicit check for now.1 parent c72accb commit 1797ba1
1 file changed
+11
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
119 | 119 | | |
120 | 120 | | |
121 | 121 | | |
122 | | - | |
123 | 122 | | |
| 123 | + | |
| 124 | + | |
124 | 125 | | |
125 | 126 | | |
126 | 127 | | |
127 | 128 | | |
128 | 129 | | |
129 | 130 | | |
| 131 | + | |
| 132 | + | |
| 133 | + | |
| 134 | + | |
| 135 | + | |
130 | 136 | | |
131 | 137 | | |
| 138 | + | |
| 139 | + | |
| 140 | + | |
| 141 | + | |
132 | 142 | | |
0 commit comments