Skip to content

Commit 4c681b3

Browse files
committed
Add continue test for revert
Signed-off-by: Nicolas Morey-Chaisemartin <[email protected]>
1 parent cf1e1f6 commit 4c681b3

File tree

1 file changed

+18
-0
lines changed

1 file changed

+18
-0
lines changed

travis/test.sh

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -137,6 +137,24 @@ EOF
137137
exit 1
138138
fi
139139

140+
git add file
141+
GIT_EDITOR=true git revert --continue
142+
LOG=$($SEQDIR/sequencer-status | __sanitize_log)
143+
REF_LOG=$(cat <<EOF | __sanitize_log
144+
# Reverting
145+
*revert 382e384 Third commit
146+
done 5f46594 Revert "Second commit"
147+
done 6ff346f Revert "Fourth commit"
148+
onto 6570375 Fourth commit
149+
EOF
150+
)
151+
152+
diff <(echo "$LOG") <(echo "$REF_LOG")
153+
if [ $? -ne 0 ]; then
154+
echo "Failure in revert mode" >&2
155+
exit 1
156+
fi
157+
140158
git revert --abort
141159

142160
echo "Checking single revert support"

0 commit comments

Comments
 (0)