From 9d205a3c5ac41a6416179790ce93035ec4c0f0c6 Mon Sep 17 00:00:00 2001
From: grev <grev>
Date: Wed, 19 Dec 2007 20:08:43 +0000
Subject: [PATCH] b=14462 i=Adilger i=Alexey.Lyashkov

error if dd is not started; use tfile instead of tdir
---
 lustre/tests/sanity.sh | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/lustre/tests/sanity.sh b/lustre/tests/sanity.sh
index 260c4c4fdc..7bdb056ba8 100644
--- a/lustre/tests/sanity.sh
+++ b/lustre/tests/sanity.sh
@@ -4405,7 +4405,8 @@ test_118k()
 	mkdir -p $DIR/$tdir
 
         for ((i=0;i<10;i++)); do
-                dd if=/dev/zero of=$DIR/$tdir/$tdir-$i bs=1M count=10 &
+                (dd if=/dev/zero of=$DIR/$tdir/$tfile-$i bs=1M count=10 || \
+			error "dd to $DIR/$tdir/$tfile-$i failed" )&
 	        SLEEPPID=$!
                 sleep 0.500s
 	        kill $SLEEPPID
-- 
GitLab