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: v21.0.0~285^2~1 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=9d289ed14e79fa8008ba30b77b425a4508030110;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 --- diff --git a/qa/workunits/dencoder/test-dencoder.sh b/qa/workunits/dencoder/test-dencoder.sh index dfa8da886b6c..9f22aad66d9f 100755 --- a/qa/workunits/dencoder/test-dencoder.sh +++ b/qa/workunits/dencoder/test-dencoder.sh @@ -7,6 +7,7 @@ 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 -$mydir/test_readable.py $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