Skip to content
Snippets Groups Projects
Commit 59ad7cf3 authored by Elena Gryaznova's avatar Elena Gryaznova
Browse files

b=13486

i=Nathan

Increase a set of files to choose from.
parent 874d90cf
No related merge requests found
...@@ -31,7 +31,7 @@ log() { ...@@ -31,7 +31,7 @@ log() {
ERROR= ERROR=
SRC=/etc SRC="/etc /bin"
[ "$COUNT" ] || COUNT=1000 [ "$COUNT" ] || COUNT=1000
[ "$MCREATE" ] || MCREATE=mcreate [ "$MCREATE" ] || MCREATE=mcreate
...@@ -100,7 +100,7 @@ mkdir $DST || fail "can't mkdir $DST" 10 ...@@ -100,7 +100,7 @@ mkdir $DST || fail "can't mkdir $DST" 10
# ok, that hopefully worked, so let's do a little more, with files that # 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) # 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` FILES=`find $SRC -type f -mtime +1 | head -n $COUNT`
[ -z "$FILES" ] && fail "No unchanged files - is $SRC a new dir?" [ -z "$FILES" ] && fail "No unchanged files - is $SRC a new dir?"
log "copying files from $SRC to $DST$SRC at `date`" log "copying files from $SRC to $DST$SRC at `date`"
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment