From f6bdcd01afd3db52d9b40281113f3ca55cbd5734 Mon Sep 17 00:00:00 2001 From: NitzanMordhai Date: Mon, 2 Feb 2026 07:34:24 +0000 Subject: [PATCH] workunits/dencoder: use readable.sh script instead of python script The python script test_readable.py was added for backword and forward compability. maintaining 2 scripts that finally doing the same is west, reverting and using readable.sh and leave the python out. https://tracker.ceph.com/issues/74074 Signed-off-by: Nitzan Mordechai (cherry picked from commit 9d289ed14e79fa8008ba30b77b425a4508030110) --- qa/workunits/dencoder/test-dencoder.sh | 13 +++++++++++++ src/test/encoding/readable.sh | 9 +++++++-- 2 files changed, 20 insertions(+), 2 deletions(-) create mode 100755 qa/workunits/dencoder/test-dencoder.sh diff --git a/qa/workunits/dencoder/test-dencoder.sh b/qa/workunits/dencoder/test-dencoder.sh new file mode 100755 index 000000000000..9f22aad66d9f --- /dev/null +++ b/qa/workunits/dencoder/test-dencoder.sh @@ -0,0 +1,13 @@ +#!/usr/bin/env bash +set -ex +CEPH_ARGS="" +mydir=`dirname $0` +ceph-dencoder version + +# clone the corpus repository on the host +git clone -b master https://github.com/ceph/ceph-object-corpus.git $CEPH_MNT/client.0/tmp/ceph-object-corpus-master + +export CORPUS_PATH=$CEPH_MNT/client.0/tmp/ceph-object-corpus-master +$mydir/../../../src/test/encoding/readable.sh + +echo $0 OK diff --git a/src/test/encoding/readable.sh b/src/test/encoding/readable.sh index 81545852cf51..230043a96307 100755 --- a/src/test/encoding/readable.sh +++ b/src/test/encoding/readable.sh @@ -1,11 +1,16 @@ #!/usr/bin/env bash set -e -source $(dirname $0)/../detect-build-env-vars.sh [ -z "$CEPH_ROOT" ] && CEPH_ROOT=.. -dir=$CEPH_ROOT/ceph-object-corpus +# check if CORPUS_PATH is set then use it for dir, if not use $CEPH_ROOT/ceph-object-corpus +if [ -n "$CORPUS_PATH" ]; then + dir=$CORPUS_PATH +else + source $(dirname $0)/../detect-build-env-vars.sh + dir=$CEPH_ROOT/ceph-object-corpus +fi failed=0 numtests=0 -- 2.47.3