From: NitzanMordhai Date: Mon, 2 Feb 2026 07:34:24 +0000 (+0000) Subject: workunits/dencoder: use readable.sh script instead of python script X-Git-Tag: v19.2.4~27^2~1 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=f6bdcd01afd3db52d9b40281113f3ca55cbd5734;p=ceph.git 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) --- diff --git a/qa/workunits/dencoder/test-dencoder.sh b/qa/workunits/dencoder/test-dencoder.sh new file mode 100755 index 00000000000..9f22aad66d9 --- /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 81545852cf5..230043a9630 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