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-3906 tests: use df instead of lfs_df in run_compilebench()
[fs/lustre-release.git]
/
lustre
/
tests
/
functions.sh
diff --git
a/lustre/tests/functions.sh
b/lustre/tests/functions.sh
index
23ff2a4
..
0bc4fa0
100644
(file)
--- a/
lustre/tests/functions.sh
+++ b/
lustre/tests/functions.sh
@@
-296,7
+296,7
@@
run_compilebench() {
[ -e $cbench_DIR/compilebench ] || \
{ skip_env "No compilebench build" && return; }
[ -e $cbench_DIR/compilebench ] || \
{ skip_env "No compilebench build" && return; }
- local space=$(
lfs_df $DIR | awk '/^filesystem/
{ print $4 }')
+ local space=$(
df -P $DIR | tail -n 1 | awk '
{ print $4 }')
if [[ $space -le $((1024 * 1024 * cbench_IDIRS)) ]]; then
cbench_IDIRS=$((space / 1024 / 1024))
[[ $cbench_IDIRS -eq 0 ]] &&
if [[ $space -le $((1024 * 1024 * cbench_IDIRS)) ]]; then
cbench_IDIRS=$((space / 1024 / 1024))
[[ $cbench_IDIRS -eq 0 ]] &&