@@ -30,7 +30,8 @@ test_expect_success setup '
30
30
echo conflicting-change >file2 &&
31
31
git add . &&
32
32
test_tick &&
33
- git commit -m "related commit"
33
+ git commit -m "related commit" &&
34
+ remove_progress_re="$(printf "s/.*\\r//")"
34
35
'
35
36
36
37
create_expected_success_am () {
@@ -48,8 +49,8 @@ create_expected_success_interactive () {
48
49
q_to_cr > expected << -EOF
49
50
$( grep " ^Created autostash: [0-9a-f][0-9a-f]*\$ " actual)
50
51
HEAD is now at $( git rev-parse --short feature-branch) third commit
51
- Rebasing (1/2)QRebasing (2/2)QApplied autostash.
52
- Q QSuccessfully rebased and updated refs/heads/rebased-feature-branch.
52
+ Applied autostash.
53
+ Successfully rebased and updated refs/heads/rebased-feature-branch.
53
54
EOF
54
55
}
55
56
@@ -67,13 +68,13 @@ create_expected_failure_am () {
67
68
}
68
69
69
70
create_expected_failure_interactive () {
70
- q_to_cr > expected << -EOF
71
+ cat > expected << -EOF
71
72
$( grep " ^Created autostash: [0-9a-f][0-9a-f]*\$ " actual)
72
73
HEAD is now at $( git rev-parse --short feature-branch) third commit
73
- Rebasing (1/2)QRebasing (2/2)QApplying autostash resulted in conflicts.
74
+ Applying autostash resulted in conflicts.
74
75
Your changes are safe in the stash.
75
76
You can run "git stash pop" or "git stash drop" at any time.
76
- Q QSuccessfully rebased and updated refs/heads/rebased-feature-branch.
77
+ Successfully rebased and updated refs/heads/rebased-feature-branch.
77
78
EOF
78
79
}
79
80
@@ -109,7 +110,8 @@ testrebase () {
109
110
suffix=interactive
110
111
fi &&
111
112
create_expected_success_$suffix &&
112
- test_i18ncmp expected actual
113
+ sed "$remove_progress_re" <actual >actual2 &&
114
+ test_i18ncmp expected actual2
113
115
'
114
116
115
117
test_expect_success " rebase$type : dirty index, non-conflicting rebase" '
@@ -209,7 +211,8 @@ testrebase () {
209
211
suffix=interactive
210
212
fi &&
211
213
create_expected_failure_$suffix &&
212
- test_i18ncmp expected actual
214
+ sed "$remove_progress_re" <actual >actual2 &&
215
+ test_i18ncmp expected actual2
213
216
'
214
217
}
215
218
0 commit comments