My Various Git Projects
/
git.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
838cd34
)
test-lib: fix color reset in say_color()
author
Miklos Vajna
<vmiklos@frugalware.org>
Thu, 9 Oct 2008 22:07:10 +0000
(
00:07
+0200)
committer
Shawn O. Pearce
<spearce@spearce.org>
Fri, 10 Oct 2008 15:01:40 +0000
(08:01 -0700)
When executing a single test with colors enabled, the cursor was not set
back to the previous one, and you had to hit an extra enter to get it
back.
Work around this problem by calling 'tput sgr0' before printing the
final newline.
Signed-off-by: Miklos Vajna <vmiklos@frugalware.org>
Signed-off-by: Shawn O. Pearce <spearce@spearce.org>
t/test-lib.sh
patch
|
blob
|
history
diff --git
a/t/test-lib.sh
b/t/test-lib.sh
index
11c0275
..
3569836
100644
(file)
--- a/
t/test-lib.sh
+++ b/
t/test-lib.sh
@@
-112,8
+112,9
@@
if test -n "$color"; then
*) test -n "$quiet" && return;;
esac
shift
-
echo
"* $*"
+
printf
"* $*"
tput sgr0
+ echo
)
}
else