From: John L. Hammond Date: Wed, 15 May 2013 17:42:47 +0000 (-0500) Subject: LU-3348 test: use correct old path in racer's file_link.sh X-Git-Tag: 2.4.52~48 X-Git-Url: https://git.whamcloud.com/gitweb?a=commitdiff_plain;h=refs%2Fchanges%2F51%2F6351%2F2;p=fs%2Flustre-release.git LU-3348 test: use correct old path in racer's file_link.sh In racer's file_link.sh the old path was not prefixed by the directory used by racer. Since file_link.sh does not run out of this directory no links were created. Fix this in by supplying the correct old path. Signed-off-by: John L. Hammond Change-Id: Ifcbcc3d50c70faed7a99fa95217b08c8efe35791 Reviewed-on: http://review.whamcloud.com/6351 Tested-by: Hudson Tested-by: Maloo Reviewed-by: Andreas Dilger Reviewed-by: Jian Yu --- diff --git a/lustre/tests/racer/file_link.sh b/lustre/tests/racer/file_link.sh index aaf498d..9a49395 100755 --- a/lustre/tests/racer/file_link.sh +++ b/lustre/tests/racer/file_link.sh @@ -3,8 +3,8 @@ DIR=$1 MAX=$2 -while /bin/true ; do - file=$((RANDOM % $MAX)) - new_file=$((RANDOM % MAX)) - ln $file $DIR/$new_file 2> /dev/null +while true; do + old_path=$DIR/$((RANDOM % MAX)) + new_path=$DIR/$((RANDOM % MAX)) + ln $old_path $new_path 2> /dev/null done