Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork33.4k
Commit709c02b
committed
gh-109162: libregrtest: add worker.py
Add new worker.py file:* Move create_worker_process() and worker_process() to this file.* Add main() function to worker.py. create_worker_process() now runs the command: "python -m test.libregrtest.worker JSON".* create_worker_process() now starts the worker process in the current working directory. Regrtest now gets the absolute path of the reflog.txt filename: -R command line option filename.* Remove --worker-json command line option. Remove test_regrtest.test_worker_json().Related changes:* Add write_json() and from_json() methods to TestResult.* Rename select_temp_dir() to get_temp_dir() and move it to utils.* Rename make_temp_dir() to get_work_dir() and move it to utils. It no longer calls os.makedirs(): Regrtest.main() now calls it.* Move fix_umask() to utils. The function is now called by setup_tests().* Move StrPath to utils.* Add exit_timeout() context manager to utils.* RunTests: Replace junit_filename (StrPath) with use_junit (bool).1 parent2dd6a86 commit709c02b
File tree
10 files changed
+238
-213
lines changed- Lib/test
- libregrtest
10 files changed
+238
-213
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
216 | 216 | | |
217 | 217 | | |
218 | 218 | | |
219 | | - | |
220 | 219 | | |
221 | 220 | | |
222 | 221 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
2 | 1 | | |
3 | 2 | | |
4 | 3 | | |
5 | 4 | | |
6 | 5 | | |
7 | 6 | | |
8 | | - | |
9 | | - | |
10 | 7 | | |
11 | 8 | | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
12 | 13 | | |
13 | 14 | | |
14 | 15 | | |
15 | 16 | | |
16 | 17 | | |
17 | | - | |
| 18 | + | |
18 | 19 | | |
19 | 20 | | |
20 | 21 | | |
21 | | - | |
22 | | - | |
23 | | - | |
24 | | - | |
25 | | - | |
26 | | - | |
27 | | - | |
28 | | - | |
29 | | - | |
30 | | - | |
31 | | - | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
32 | 25 | | |
33 | 26 | | |
34 | 27 | | |
| |||
104 | 97 | | |
105 | 98 | | |
106 | 99 | | |
107 | | - | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
108 | 103 | | |
109 | 104 | | |
110 | 105 | | |
| |||
454 | 449 | | |
455 | 450 | | |
456 | 451 | | |
457 | | - | |
458 | | - | |
459 | | - | |
460 | | - | |
461 | | - | |
462 | | - | |
463 | | - | |
464 | | - | |
465 | | - | |
466 | | - | |
467 | | - | |
468 | | - | |
469 | | - | |
470 | | - | |
471 | | - | |
472 | | - | |
473 | | - | |
474 | | - | |
475 | | - | |
476 | | - | |
477 | | - | |
478 | | - | |
479 | | - | |
480 | | - | |
481 | | - | |
482 | | - | |
483 | | - | |
484 | | - | |
485 | | - | |
486 | | - | |
487 | | - | |
488 | | - | |
489 | | - | |
490 | | - | |
491 | | - | |
492 | | - | |
493 | | - | |
494 | | - | |
495 | | - | |
496 | | - | |
497 | | - | |
498 | | - | |
499 | | - | |
500 | | - | |
501 | | - | |
502 | | - | |
503 | | - | |
504 | | - | |
505 | | - | |
506 | | - | |
507 | | - | |
508 | | - | |
509 | | - | |
510 | | - | |
511 | | - | |
512 | | - | |
513 | | - | |
514 | | - | |
515 | 452 | | |
516 | 453 | | |
517 | 454 | | |
| |||
534 | 471 | | |
535 | 472 | | |
536 | 473 | | |
537 | | - | |
538 | | - | |
539 | | - | |
| 474 | + | |
540 | 475 | | |
541 | 476 | | |
542 | 477 | | |
543 | 478 | | |
544 | 479 | | |
545 | | - | |
| 480 | + | |
| 481 | + | |
546 | 482 | | |
547 | | - | |
| 483 | + | |
548 | 484 | | |
549 | 485 | | |
550 | 486 | | |
| |||
556 | 492 | | |
557 | 493 | | |
558 | 494 | | |
559 | | - | |
560 | | - | |
561 | | - | |
562 | | - | |
563 | | - | |
564 | | - | |
565 | | - | |
566 | 495 | | |
567 | 496 | | |
568 | 497 | | |
| |||
579 | 508 | | |
580 | 509 | | |
581 | 510 | | |
582 | | - | |
| 511 | + | |
583 | 512 | | |
584 | 513 | | |
585 | 514 | | |
| |||
634 | 563 | | |
635 | 564 | | |
636 | 565 | | |
637 | | - | |
638 | | - | |
639 | | - | |
640 | | - | |
641 | | - | |
642 | 566 | | |
643 | 567 | | |
644 | 568 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
68 | 68 | | |
69 | 69 | | |
70 | 70 | | |
71 | | - | |
72 | 71 | | |
73 | 72 | | |
74 | 73 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
5 | | - | |
| 5 | + | |
6 | 6 | | |
7 | | - | |
| 7 | + | |
| 8 | + | |
8 | 9 | | |
9 | 10 | | |
10 | 11 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
17 | 17 | | |
18 | 18 | | |
19 | 19 | | |
20 | | - | |
| 20 | + | |
| 21 | + | |
21 | 22 | | |
22 | 23 | | |
23 | 24 | | |
24 | | - | |
25 | 25 | | |
26 | 26 | | |
27 | 27 | | |
| |||
215 | 215 | | |
216 | 216 | | |
217 | 217 | | |
| 218 | + | |
| 219 | + | |
| 220 | + | |
| 221 | + | |
| 222 | + | |
| 223 | + | |
| 224 | + | |
| 225 | + | |
| 226 | + | |
| 227 | + | |
| 228 | + | |
| 229 | + | |
| 230 | + | |
| 231 | + | |
| 232 | + | |
| 233 | + | |
| 234 | + | |
| 235 | + | |
| 236 | + | |
| 237 | + | |
| 238 | + | |
| 239 | + | |
| 240 | + | |
| 241 | + | |
| 242 | + | |
| 243 | + | |
| 244 | + | |
218 | 245 | | |
219 | 246 | | |
220 | 247 | | |
| |||
234 | 261 | | |
235 | 262 | | |
236 | 263 | | |
237 | | - | |
| 264 | + | |
238 | 265 | | |
239 | 266 | | |
240 | 267 | | |
| |||
358 | 385 | | |
359 | 386 | | |
360 | 387 | | |
361 | | - | |
| 388 | + | |
362 | 389 | | |
363 | 390 | | |
364 | 391 | | |
| |||
434 | 461 | | |
435 | 462 | | |
436 | 463 | | |
437 | | - | |
438 | | - | |
| 464 | + | |
| 465 | + | |
439 | 466 | | |
440 | 467 | | |
441 | 468 | | |
| |||
0 commit comments
Comments
(0)