From 7cecde8574a5ee6b2f552d164ed077175355b8eb Mon Sep 17 00:00:00 2001
From: grev <grev>
Date: Wed, 19 Dec 2007 19:40:31 +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 cd962eb449..5a83d7d4eb 100644
--- a/lustre/tests/sanity.sh
+++ b/lustre/tests/sanity.sh
@@ -4327,7 +4327,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