separate dirname and basename in non-tap format
This commit is contained in:
parent
e8d3f84b92
commit
9c633a2029
8
urchin
8
urchin
@ -242,16 +242,18 @@ report_outcome() {
|
||||
if test "$prevdir" != "$currentdir"; then
|
||||
echo
|
||||
fi
|
||||
pretty_path="$(dirname -- "$path")/
|
||||
$(basename -- "$path")"
|
||||
case "$result" in
|
||||
ok)
|
||||
# On success, print a green '✓'
|
||||
printf '\033[32m✓ \033[0m'
|
||||
printf '%s\n' "${path}"
|
||||
printf '%s\n' "${pretty_path}"
|
||||
;;
|
||||
not_ok)
|
||||
# On not_ok, print a red '✗'
|
||||
printf '\033[31m✗ \033[0m'
|
||||
printf '%s\n' "${path}"
|
||||
printf '%s\n' "${pretty_path}"
|
||||
|
||||
# Print output captured from not_ok test in red.
|
||||
printf '\033[31m'
|
||||
@ -260,7 +262,7 @@ report_outcome() {
|
||||
printf '\033[0m'
|
||||
;;
|
||||
skip)
|
||||
printf ' %s\n' "${path}"
|
||||
printf '%s\n' "${pretty_path}"
|
||||
;;
|
||||
esac
|
||||
fi
|
||||
|
Loading…
x
Reference in New Issue
Block a user