From 84a646f4695779bf82af58629a45f46f9a8a0e7c Mon Sep 17 00:00:00 2001 From: Arnaud Giersch Date: Thu, 27 Jun 2013 14:10:52 +0200 Subject: [PATCH] Test -eq is for numerical values. Use construct "Use Alternate Value" to achieve the desired effect. --- teshsuite/smpi/mpich-test/coll/runtests | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) 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="" -- 2.20.1