From: Elena Gryaznova Date: Tue, 30 Jul 2013 06:21:50 +0000 (+0400) Subject: LU-3656 tests: use full path to directio X-Git-Tag: 2.4.90~6 X-Git-Url: https://git.whamcloud.com/?p=fs%2Flustre-release.git;a=commitdiff_plain;h=92d861cde61c3717b1140e50b1869ca61e8b98eb;hp=33c6f2aff8cd4eb5c73f871dbf02319435300881 LU-3656 tests: use full path to directio The sanity-benchmark iozone directio test is skipped if started not from lustre/tests directory because of related path used. Patch fixes this test to use DIRECTIO instead of ./directio Signed-off-by: Elena Gryaznova Xyratex-bug-id: MRP-1170 Change-Id: I4dec24b38300df8a14fb8f74f84b4f91c0cde910 Reviewed-on: http://review.whamcloud.com/7173 Tested-by: Hudson Tested-by: Maloo Reviewed-by: James Nunez Reviewed-by: Jian Yu Reviewed-by: Oleg Drokin --- diff --git a/lustre/tests/sanity-benchmark.sh b/lustre/tests/sanity-benchmark.sh index 2e9f734..26b10c6 100644 --- a/lustre/tests/sanity-benchmark.sh +++ b/lustre/tests/sanity-benchmark.sh @@ -29,6 +29,7 @@ RSIZE=${RSIZE:-512} DEBUG_LVL=${DEBUG_LVL:-0} DEBUG_OFF=${DEBUG_OFF:-"eval lctl set_param debug=\"$DEBUG_LVL\""} DEBUG_ON=${DEBUG_ON:-"eval lctl set_param debug=0x33f0484"} +DIRECTIO=${DIRECTIO:-directio} PIOSBIN=${PIOSBIN:-$(which pios 2> /dev/null || true)} @@ -143,7 +144,7 @@ test_iozone() { # check if O_DIRECT support is implemented in kernel if [ -z "$O_DIRECT" ]; then touch $DIR/f.iozone - if ! ./directio write $DIR/f.iozone 0 1; then + if ! $DIRECTIO write $DIR/f.iozone 0 1; then log "SKIP iozone DIRECT IO test" O_DIRECT=no fi