##// 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 b' HGMERGE=true; export HGMERGE'
20 HGUSER="test"; export HGUSER
20 HGUSER="test"; export HGUSER
21 HGRCPATH=""; export HGRCPATH
21 HGRCPATH=""; export HGRCPATH
22
22
23 ECHO_N="echo -n"
23 if [ `echo -n HG` == "-n HG" ]
24 [ -x /usr/ucb/echo ] && ECHO_N="/usr/ucb/echo -n"
24 then
25 ECHO_N=echo
26 NNL="\c"
27 else
28 ECHO_N="echo -n"
29 NNL=
30 fi
25
31
26 umask 022
32 umask 022
27
33
@@ -139,7 +145,7 b' if [ -z "$TESTS" ] ; then'
139 fi
145 fi
140
146
141 for f in $TESTS ; do
147 for f in $TESTS ; do
142 $ECHO_N "."
148 $ECHO_N ".${NNL}"
143 run_one $f || failed=`expr $failed + 1`
149 run_one $f || failed=`expr $failed + 1`
144 tests=`expr $tests + 1`
150 tests=`expr $tests + 1`
145 done
151 done
General Comments 0
You need to be logged in to leave comments. Login now