Commit fc99da1
t9001: drop save_confirm helper
The idea of this helper is that we want to save the current
value of a config variable and then restore it again after
the test completes. However, there's no point in actually
saving the value; it should always be restored to the string
"never" (which you can confirm by instrumenting
save_confirm to print the value it finds).
Let's just replace it with a single test_when_finished call.
Suggested-by: SZEDER Gábor <[email protected]>
Signed-off-by: Jeff King <[email protected]>
Signed-off-by: Junio C Hamano <[email protected]>1 parent be86fb3 commit fc99da1
1 file changed
+5
-10
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
817 | 817 | | |
818 | 818 | | |
819 | 819 | | |
820 | | - | |
821 | | - | |
822 | | - | |
823 | | - | |
824 | | - | |
825 | 820 | | |
826 | | - | |
| 821 | + | |
827 | 822 | | |
828 | 823 | | |
829 | 824 | | |
830 | 825 | | |
831 | 826 | | |
832 | | - | |
| 827 | + | |
833 | 828 | | |
834 | 829 | | |
835 | 830 | | |
836 | 831 | | |
837 | 832 | | |
838 | | - | |
| 833 | + | |
839 | 834 | | |
840 | 835 | | |
841 | 836 | | |
| |||
848 | 843 | | |
849 | 844 | | |
850 | 845 | | |
851 | | - | |
| 846 | + | |
852 | 847 | | |
853 | 848 | | |
854 | 849 | | |
| |||
860 | 855 | | |
861 | 856 | | |
862 | 857 | | |
863 | | - | |
| 858 | + | |
864 | 859 | | |
865 | 860 | | |
866 | 861 | | |
| |||
0 commit comments