X-Git-Url: https://git.notmuchmail.org/git?p=notmuch;a=blobdiff_plain;f=test%2Ftest-lib.sh;h=c394e66f2645e2d692c3ffc182ca07550ee917d1;hp=e4729a61cd8ec634847eabca8fa37609cf7b7bde;hb=cfc09095113158749b3bd4f8e322f630eaeff5f1;hpb=1db3244bf1b271633976cb74952367e530d27d3d diff --git a/test/test-lib.sh b/test/test-lib.sh index e4729a61..c394e66f 100644 --- a/test/test-lib.sh +++ b/test/test-lib.sh @@ -267,33 +267,6 @@ export GNUPGHOME="${TEST_TMPDIR}/gnupg" trap 'trap_exit' EXIT trap 'trap_signal' HUP INT TERM -test_decode_color () { - sed -e 's/.\[1m//g' \ - -e 's/.\[31m//g' \ - -e 's/.\[32m//g' \ - -e 's/.\[33m//g' \ - -e 's/.\[34m//g' \ - -e 's/.\[35m//g' \ - -e 's/.\[36m//g' \ - -e 's/.\[m//g' -} - -q_to_nul () { - perl -pe 'y/Q/\000/' -} - -q_to_cr () { - tr Q '\015' -} - -append_cr () { - sed -e 's/$/Q/' | tr Q '\015' -} - -remove_cr () { - tr '\015' Q | sed -e 's/Q$//' -} - # Generate a new message in the mail directory, with a unique message # ID and subject. The message is not added to the index. #