changeset 1954:34d0e2e559ff

merge with crew.
author Vadim Gelfer <vadim.gelfer@gmail.com>
date Tue, 14 Mar 2006 22:02:41 -0800
parents 379ab45b91b7 (current diff) f4df34b6987f (diff)
children f92cf4a8cedd d53a18f592be
files
diffstat 1 files changed, 9 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/tests/run-tests	Tue Mar 14 22:01:30 2006 -0800
+++ b/tests/run-tests	Tue Mar 14 22:02:41 2006 -0800
@@ -20,8 +20,14 @@
 HGUSER="test"; export HGUSER
 HGRCPATH=""; export HGRCPATH
 
-ECHO_N="echo -n"
-[ -x /usr/ucb/echo ] && ECHO_N="/usr/ucb/echo -n"
+if [ `echo -n HG` == "-n HG" ]
+then
+    ECHO_N=echo
+    NNL="\c"
+else
+    ECHO_N="echo -n"
+    NNL=
+fi
 
 umask 022
 
@@ -139,7 +145,7 @@
 fi
 
 for f in $TESTS ; do
-    $ECHO_N "."
+    $ECHO_N ".${NNL}"
     run_one $f || failed=`expr $failed + 1`
     tests=`expr $tests + 1`
 done