From: grev Date: Fri, 17 Aug 2007 17:43:51 +0000 (+0000) Subject: b=13350 X-Git-Tag: v1_8_0_110~1321 X-Git-Url: https://git.whamcloud.com/?a=commitdiff_plain;h=a65710af9b1d8ddcf87dc162f19228c2d9352085;p=fs%2Flustre-release.git b=13350 i=Nathan Abort runtests if $FILES is empty. --- diff --git a/lustre/tests/runtests b/lustre/tests/runtests index 42bc087..d49738b 100755 --- a/lustre/tests/runtests +++ b/lustre/tests/runtests @@ -101,6 +101,8 @@ mkdir $DST || fail "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=`find $SRC -type f -mtime +1 -ctime +1 | head -n $COUNT` +[ -z "$FILES" ] && fail "No unchanged files - is $SRC a new dir?" + log "copying files from $SRC to $DST$SRC at `date`" tar cf - $FILES | tar xvf - -C $DST > /dev/null || fail "copying $SRC" 11