From: Elena Gryaznova Date: Tue, 12 Jan 2010 20:26:35 +0000 (+0300) Subject: b=19702 fix COUNT to work properly X-Git-Tag: 1.10.0.35~16 X-Git-Url: https://git.whamcloud.com/?p=fs%2Flustre-release.git;a=commitdiff_plain;h=10b1bf90319700731af09b17d17320ce811a369d b=19702 fix COUNT to work properly i=Andrew.Perepechko --- diff --git a/lustre/tests/runtests b/lustre/tests/runtests index 64426d1..ad0778b 100755 --- a/lustre/tests/runtests +++ b/lustre/tests/runtests @@ -64,8 +64,8 @@ mkdir $DST || error "can't mkdir $DST" 10 # ok, that hopefully worked, so let's do a little more, with files that # haven't changed in the last day (hopefully they don't change during test) FILES=$TMP/runtests.files -# print0 is to use "NUL" instead of newline as filename terminator, bug 19702 -find $RUNTESTS_SRC -type f -mtime +1 -print0 | head -n $COUNT > $FILES +# use "NUL" instead of newline as filename terminator, bug 19702 +find $RUNTESTS_SRC -type f -mtime +1 | head -n $COUNT | tr '\n' '\0' > $FILES [ -s "$FILES" ] || error "$RUNTESTS_SRC contains only files modifed less than 2 days ago" log "copying files from $RUNTESTS_SRC to $DST$RUNTESTS_SRC at `date`"