xfstests: keep newlines out of SCRATCH_DEV_POOL
authorEric Sandeen <sandeen@redhat.com>
Wed, 13 Mar 2013 14:57:02 +0000 (14:57 +0000)
committerroot <root@cxfsxe4.americas.sgi.com>
Thu, 14 Mar 2013 13:05:24 +0000 (08:05 -0500)
SCRATCH_DEV_POOL processing actually takes the first
device out for SCRATCH_DEV and leaves the rest in
SCRATCH_DEV_POOL.

I'm not totally sold on that behavior, but for now,
at least don't populate SCRATCH_DEV_POOL with newlines.

Cc: linux-btrfs@vger.kernel.org
Signed-off-by: Eric Sandeen <sandeen@redhat.com>
Reviewed-by: <rjohnston@sgi.com>
Signed-off-by: <rjohnston@sgi.com>
common.config

index ed0f44c2cec5f19069370b87a392267bfacb2579..5ac58bf16f69a65b813fc6b6e0622aadd0b00939 100644 (file)
@@ -258,7 +258,7 @@ if [ ! -z "$SCRATCH_DEV_POOL" ]; then
         exit 1
     fi
     SCRATCH_DEV=`echo $SCRATCH_DEV_POOL | awk '{print $1}'`
-    SCRATCH_DEV_POOL=`echo $SCRATCH_DEV_POOL | awk '{ for (i = 2; i <= NF; i++) print $i}'`
+    SCRATCH_DEV_POOL=`echo $SCRATCH_DEV_POOL | awk '{ ORS=" "; for (i = 2; i <= NF; i++) print $i}'`
 fi
 
 echo $SCRATCH_DEV | grep -q ":" > /dev/null 2>&1