From: Arnaud Giersch Date: Thu, 27 Jun 2013 12:10:52 +0000 (+0200) Subject: Test -eq is for numerical values. X-Git-Tag: v3_9_90~217 X-Git-Url: http://bilbo.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/commitdiff_plain/84a646f4695779bf82af58629a45f46f9a8a0e7c Test -eq is for numerical values. Use construct "Use Alternate Value" to achieve the desired effect. --- diff --git a/teshsuite/smpi/mpich-test/coll/runtests b/teshsuite/smpi/mpich-test/coll/runtests index 9026867a28..168ade1fb1 100755 --- a/teshsuite/smpi/mpich-test/coll/runtests +++ b/teshsuite/smpi/mpich-test/coll/runtests @@ -77,11 +77,7 @@ if [ ! -x coll1 -a $makeeach = 0 -a $runtests = 1 ] ; then $MAKE fi -if [ $have_selector -eq "" ] ; then -selector="" -else -selector="--cfg=smpi/coll_selector:$have_selector" -fi +selector=${have_selector:+--cfg=smpi/coll_selector:$have_selector} mpirun=" ${basedir}/bin/smpirun -platform ${srcdir}/../../../../examples/msg/small_platform_with_routers.xml -hostfile ${srcdir}/../../hostfile --log=root.thres:critical $selector " testfiles=""