mirror of
https://github.com/troglobit/finit.git
synced 2026-11-11 16:40:48 +00:00
test: slight formatting change in log() output
Encase (stripped) test name in [] and use decreased intensity ANSI coloring. Signed-off-by: Joachim Wiberg <troglobit@gmail.com>
This commit is contained in:
1 parent
20290a4166
commit
879721839e
1 file changed
+2
-1
+2
-1
@@ -51,7 +51,8 @@ fg_red='\e[1;31m'
|
|||||||
fg_green='\e[1;32m'
|
fg_green='\e[1;32m'
|
||||||
fg_yellow='\e[1;33m'
|
fg_yellow='\e[1;33m'
|
||||||
log() {
|
log() {
|
||||||
printf "< %s > %b%b%b %s\n" "$0" "$1" "$2" "$color_reset" "$3"
|
test=$(basename "$0" ".sh")
|
||||||
|
printf "\e[2m[%s]\e[0m %b%b%b %s\n" "$test" "$1" "$2" "$color_reset" "$3"
|
||||||
}
|
}
|
||||||
|
|
||||||
assert() {
|
assert() {
|
||||||
|
|||||||
Reference in new issue
Block a user