Whamcloud - gitweb
git://git.whamcloud.com
/
fs
/
lustre-release.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
LU-14789 tests: make sanity 133f and 133g working
[fs/lustre-release.git]
/
lustre
/
tests
/
racer
/
file_rename.sh
diff --git
a/lustre/tests/racer/file_rename.sh
b/lustre/tests/racer/file_rename.sh
index
a4ef5b8
..
b5ea2d1
100755
(executable)
--- a/
lustre/tests/racer/file_rename.sh
+++ b/
lustre/tests/racer/file_rename.sh
@@
-1,9
+1,10
@@
#!/bin/bash
+trap 'kill $(jobs -p)' EXIT
DIR=$1
MAX=$2
-while /bin/true ; do
+while /bin/true ; do
file=$((RANDOM % MAX))
new_file=$((RANDOM % MAX))
mv $DIR/$file $DIR/$new_file 2> /dev/null