We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 28a61e8 commit 7415785Copy full SHA for 7415785
test.sh
@@ -43,15 +43,24 @@ message()
43
sed "s/$gi_re/gi/"
44
}
45
46
+RED=''
47
+GREEN=''
48
+NC=''
49
+if [ -t 1 ] && command -v tput > /dev/null 2>&1 && [ "$(tput colors)" -gt 2 ] ; then
50
+ RED=$(tput setaf 1)
51
+ GREEN=$(tput setaf 2)
52
+ NC=$(tput sgr0)
53
+fi
54
+
55
ok()
56
{
- message ok "$*"
57
+ message ${GREEN}ok${NC} "$*"
58
59
60
fail()
61
62
printf "%d " "$ntest" >>"$TopDir/failure"
- message fail "$*"
63
+ message ${RED}fail${NC} "$*"
64
65
66
# Test specified command, which should succeed
0 commit comments