transport.c::transport_push(): make ref status affect return value
[gitweb.git] / t / test-lib.sh
index 2d523fe0f08dbbc1971f4601f24664cdbce95415..142f36f2e919929520d240e56b65f2b69e4b4982 100644 (file)
@@ -211,6 +211,17 @@ test_set_editor () {
        export EDITOR
 }
 
+test_decode_color () {
+       sed     -e 's/.\[1m/<WHITE>/g' \
+               -e 's/.\[31m/<RED>/g' \
+               -e 's/.\[32m/<GREEN>/g' \
+               -e 's/.\[33m/<YELLOW>/g' \
+               -e 's/.\[34m/<BLUE>/g' \
+               -e 's/.\[35m/<MAGENTA>/g' \
+               -e 's/.\[36m/<CYAN>/g' \
+               -e 's/.\[m/<RESET>/g'
+}
+
 test_tick () {
        if test -z "${test_tick+set}"
        then