Commit a5c26f3
committed
pytest_plugin(fix[git_repo]): isolate clone from cache
why: The first consumer of git_repo/hg_repo got a live handle to the
session-scoped master_copy, so its mutations (e.g. adding a remote)
leaked into every later test that copied the cache. Surfaced as
order-dependent failures; a real isolation bug for plugin consumers.
what:
- Build master_copy once as a pristine read-only cache
- Always return an isolated copytree, including for the first consumer
- Apply the same fix to git_repo and hg_repo1 parent e4b4639 commit a5c26f3
2 files changed
Lines changed: 36 additions & 26 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
29 | 29 | | |
30 | 30 | | |
31 | 31 | | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
32 | 40 | | |
33 | 41 | | |
34 | 42 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
719 | 719 | | |
720 | 720 | | |
721 | 721 | | |
722 | | - | |
723 | | - | |
724 | | - | |
| 722 | + | |
| 723 | + | |
| 724 | + | |
| 725 | + | |
| 726 | + | |
725 | 727 | | |
726 | | - | |
727 | | - | |
728 | | - | |
729 | | - | |
| 728 | + | |
| 729 | + | |
| 730 | + | |
| 731 | + | |
| 732 | + | |
| 733 | + | |
| 734 | + | |
| 735 | + | |
| 736 | + | |
| 737 | + | |
| 738 | + | |
| 739 | + | |
730 | 740 | | |
731 | | - | |
732 | | - | |
733 | | - | |
734 | | - | |
735 | | - | |
736 | | - | |
737 | | - | |
738 | | - | |
| 741 | + | |
739 | 742 | | |
740 | | - | |
741 | | - | |
742 | 743 | | |
743 | 744 | | |
744 | 745 | | |
| |||
753 | 754 | | |
754 | 755 | | |
755 | 756 | | |
756 | | - | |
757 | | - | |
758 | | - | |
| 757 | + | |
| 758 | + | |
| 759 | + | |
| 760 | + | |
| 761 | + | |
759 | 762 | | |
760 | | - | |
761 | | - | |
| 763 | + | |
| 764 | + | |
762 | 765 | | |
763 | | - | |
| 766 | + | |
| 767 | + | |
764 | 768 | | |
765 | | - | |
| 769 | + | |
766 | 770 | | |
767 | | - | |
768 | | - | |
769 | 771 | | |
770 | 772 | | |
771 | 773 | | |
| |||
0 commit comments