aboutsummaryrefslogtreecommitdiff
path: root/t/perf/perf-lib.sh
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2013-08-01 11:52:43 -0700
committerJunio C Hamano <gitster@pobox.com>2013-08-01 11:52:43 -0700
commita5203a3f044ced7904800f3f233451474c1d5120 (patch)
tree13c6af9a3c8e9fdb2dcaf3b5345a5355e8caaa10 /t/perf/perf-lib.sh
parent400bf4c46b2bf01cca2658c7d7b4774d7a711486 (diff)
parent19c3c5fdcb35b66b792534c5dc4e8d87a3952d2a (diff)
downloadgit-a5203a3f044ced7904800f3f233451474c1d5120.tar.gz
git-a5203a3f044ced7904800f3f233451474c1d5120.tar.xz
Merge branch 'lf/echo-n-is-not-portable'
* lf/echo-n-is-not-portable: Avoid using `echo -n` anywhere
Diffstat (limited to 't/perf/perf-lib.sh')
-rw-r--r--t/perf/perf-lib.sh4
1 files changed, 2 insertions, 2 deletions
diff --git a/t/perf/perf-lib.sh b/t/perf/perf-lib.sh
index c61d5351e..f4eecaa17 100644
--- a/t/perf/perf-lib.sh
+++ b/t/perf/perf-lib.sh
@@ -161,7 +161,7 @@ test_perf () {
echo "$test_count" >>"$perf_results_dir"/$base.subtests
echo "$1" >"$perf_results_dir"/$base.$test_count.descr
if test -z "$verbose"; then
- echo -n "perf $test_count - $1:"
+ printf "%s" "perf $test_count - $1:"
else
echo "perf $test_count - $1:"
fi
@@ -170,7 +170,7 @@ test_perf () {
if test_run_perf_ "$2"
then
if test -z "$verbose"; then
- echo -n " $i"
+ printf " %s" "$i"
else
echo "* timing run $i/$GIT_PERF_REPEAT_COUNT:"
fi