Commit 7c11c23
committed
Reland "Remove tempfile usage from test_sanity.py. NFC"
This was originally landed in emscripten-core#25617, but reverted because the tests
were failing.
In both cases the tempfile usage was not necessary.
test_emconfig: In this case we can just create a new config file in the
CWD. Because the test corrupts the main config file there is no risk
that the test is accidentally finding the config file via CWD alone so
there is no need to change directory into an external temp dir.
test_firstrun: We an just create the fake `bin` files in a subdirectory
of the current directory where the test runs. No need for an external
temp dir here.
This change also makes 3 of the imports in this file no longer needed!1 parent 5ca9e3c commit 7c11c23
2 files changed
+27
-96
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
563 | 563 | | |
564 | 564 | | |
565 | 565 | | |
566 | | - | |
567 | | - | |
568 | | - | |
| 566 | + | |
| 567 | + | |
| 568 | + | |
| 569 | + | |
| 570 | + | |
| 571 | + | |
| 572 | + | |
| 573 | + | |
569 | 574 | | |
570 | 575 | | |
571 | 576 | | |
| |||
1298 | 1303 | | |
1299 | 1304 | | |
1300 | 1305 | | |
1301 | | - | |
1302 | | - | |
1303 | | - | |
1304 | | - | |
1305 | | - | |
1306 | | - | |
1307 | | - | |
1308 | | - | |
1309 | | - | |
1310 | | - | |
1311 | | - | |
1312 | | - | |
1313 | | - | |
1314 | | - | |
1315 | | - | |
1316 | | - | |
1317 | | - | |
1318 | | - | |
1319 | | - | |
1320 | | - | |
1321 | | - | |
1322 | | - | |
1323 | | - | |
1324 | | - | |
1325 | | - | |
1326 | | - | |
1327 | | - | |
1328 | | - | |
1329 | | - | |
1330 | | - | |
1331 | | - | |
1332 | | - | |
1333 | | - | |
1334 | | - | |
1335 | | - | |
1336 | | - | |
1337 | | - | |
1338 | | - | |
1339 | | - | |
1340 | | - | |
1341 | | - | |
1342 | | - | |
1343 | | - | |
1344 | | - | |
1345 | | - | |
1346 | | - | |
1347 | | - | |
1348 | | - | |
1349 | | - | |
1350 | | - | |
1351 | | - | |
1352 | | - | |
1353 | | - | |
1354 | | - | |
1355 | | - | |
1356 | | - | |
1357 | | - | |
1358 | | - | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
8 | | - | |
9 | 8 | | |
10 | 9 | | |
11 | 10 | | |
12 | | - | |
13 | 11 | | |
14 | 12 | | |
15 | 13 | | |
16 | 14 | | |
17 | | - | |
18 | 15 | | |
19 | 16 | | |
20 | 17 | | |
| |||
184 | 181 | | |
185 | 182 | | |
186 | 183 | | |
187 | | - | |
188 | | - | |
| 184 | + | |
| 185 | + | |
189 | 186 | | |
190 | | - | |
191 | | - | |
192 | | - | |
| 187 | + | |
| 188 | + | |
| 189 | + | |
193 | 190 | | |
194 | | - | |
195 | | - | |
| 191 | + | |
| 192 | + | |
196 | 193 | | |
197 | | - | |
198 | | - | |
199 | | - | |
200 | | - | |
201 | | - | |
| 194 | + | |
| 195 | + | |
| 196 | + | |
| 197 | + | |
202 | 198 | | |
203 | 199 | | |
204 | 200 | | |
205 | 201 | | |
206 | 202 | | |
207 | 203 | | |
208 | | - | |
| 204 | + | |
209 | 205 | | |
210 | 206 | | |
211 | 207 | | |
| |||
524 | 520 | | |
525 | 521 | | |
526 | 522 | | |
527 | | - | |
528 | | - | |
529 | | - | |
530 | | - | |
531 | | - | |
532 | | - | |
533 | | - | |
534 | | - | |
| 523 | + | |
535 | 524 | | |
536 | 525 | | |
537 | | - | |
538 | | - | |
539 | | - | |
540 | | - | |
541 | | - | |
542 | | - | |
543 | | - | |
| 526 | + | |
544 | 527 | | |
545 | | - | |
| 528 | + | |
| 529 | + | |
| 530 | + | |
546 | 531 | | |
547 | | - | |
548 | | - | |
549 | | - | |
| 532 | + | |
| 533 | + | |
550 | 534 | | |
551 | 535 | | |
552 | 536 | | |
| |||
0 commit comments