Skip to content

Commit c98e8e3

Browse files
author
Frazer Clews
committed
Add color to test.sh output for easier readability
1 parent aac4c98 commit c98e8e3

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

test.sh

+6-2
Original file line numberDiff line numberDiff line change
@@ -43,15 +43,19 @@ message()
4343
sed "s/$gi_re/gi/"
4444
}
4545

46+
RED='\033[0;31m'
47+
GREEN='\033[0;32m'
48+
NC='\033[0m'
49+
4650
ok()
4751
{
48-
message ok "$*"
52+
message ${GREEN}ok${NC} "$*"
4953
}
5054

5155
fail()
5256
{
5357
printf "%d " "$ntest" >>"$TopDir/failure"
54-
message fail "$*"
58+
message ${RED}fail${NC} "$*"
5559
}
5660

5761
# Test specified command, which should succeed

0 commit comments

Comments
 (0)