##// END OF EJS Templates
tests: fix portability issue for echo -n
TK Soh -
r1952:f4df34b6 default
parent child Browse files
Show More
@@ -20,8 +20,14 HGMERGE=true; export HGMERGE
20 20 HGUSER="test"; export HGUSER
21 21 HGRCPATH=""; export HGRCPATH
22 22
23 if [ `echo -n HG` == "-n HG" ]
24 then
25 ECHO_N=echo
26 NNL="\c"
27 else
23 28 ECHO_N="echo -n"
24 [ -x /usr/ucb/echo ] && ECHO_N="/usr/ucb/echo -n"
29 NNL=
30 fi
25 31
26 32 umask 022
27 33
@@ -139,7 +145,7 if [ -z "$TESTS" ] ; then
139 145 fi
140 146
141 147 for f in $TESTS ; do
142 $ECHO_N "."
148 $ECHO_N ".${NNL}"
143 149 run_one $f || failed=`expr $failed + 1`
144 150 tests=`expr $tests + 1`
145 151 done
General Comments 0
You need to be logged in to leave comments. Login now