From f2e544034c083f46f834f6df419882f53882931b Mon Sep 17 00:00:00 2001 From: Elena Gryaznova Date: Tue, 25 Jun 2024 13:08:27 +0300 Subject: [PATCH] LU-17975 tests: execvp error on file write_append_truncate test fails on sles15sp4 clients due to write_append_truncate not found: execvp error on file write_append_truncate (No such file or directory) HPE-bug-id: LUS-8427 Test-Parameters: trivial testlist=parallel-scale env=ONLY=write_append_truncate Signed-off-by: Elena Gryaznova Reviewed-by: Alexander Boyko Reviewed-by: Alexander Zarochentsev Change-Id: I88a5a6c30510dff19b59d32eca2a90566a21f64e Reviewed-on: https://review.whamcloud.com/c/fs/lustre-release/+/55530 Tested-by: jenkins Tested-by: Maloo Reviewed-by: Andreas Dilger Reviewed-by: Oleg Drokin --- lustre/tests/functions.sh | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/lustre/tests/functions.sh b/lustre/tests/functions.sh index d0771f2..e741a87 100644 --- a/lustre/tests/functions.sh +++ b/lustre/tests/functions.sh @@ -792,9 +792,10 @@ run_cascading_rw() { run_write_append_truncate() { [ "$NFSCLIENT" ] && skip "skipped for NFSCLIENT mode" # location is lustre/tests dir - if ! which write_append_truncate > /dev/null 2>&1 ; then + WRITE_APPEND_TRUNCATE=${WRITE_APPEND_TRUNCATE:-$(which \ + write_append_truncate 2> /dev/null || true)} + [[ -n "$WRITE_APPEND_TRUNCATE" ]] || skip_env "write_append_truncate not found" - fi # threads per client write_THREADS=${write_THREADS:-8} @@ -814,7 +815,7 @@ run_write_append_truncate() { chmod 0777 $testdir - local cmd="write_append_truncate -n $write_REP $file" + local cmd="$WRITE_APPEND_TRUNCATE -n $write_REP $file" echo "+ $cmd" mpi_run ${MACHINEFILE_OPTION} ${MACHINEFILE} \ -- 1.8.3.1