]> git.proxmox.com Git - ceph.git/blobdiff - ceph/qa/workunits/cephadm/test_adoption.sh
import 15.2.2 octopus source
[ceph.git] / ceph / qa / workunits / cephadm / test_adoption.sh
index 7960ede00054ff3934d699d5b14ebbc9db8dd926..83e11a40ace6409e683bd1bb8a97be8ba27438d3 100755 (executable)
@@ -3,6 +3,7 @@
 SCRIPT_NAME=$(basename ${BASH_SOURCE[0]})
 SCRIPT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
 CEPHADM_SRC_DIR=${SCRIPT_DIR}/../../../src/cephadm
+CORPUS_COMMIT=50c5dd734638939facd1ed32295ce59c9a5986b4
 
 [ -z "$SUDO" ] && SUDO=sudo
 if [ -z "$CEPHADM" ]; then
@@ -54,9 +55,11 @@ CEPHADM="$SUDO $CEPHADM_BIN"
 CORPUS_GIT_SUBMOD="cephadm-adoption-corpus"
 TMPDIR=$(mktemp -d)
 git clone https://github.com/ceph/$CORPUS_GIT_SUBMOD $TMPDIR
-CORPUS_DIR=${TMPDIR}/archive
 trap "$SUDO rm -rf $TMPDIR" EXIT
 
+git -C $TMPDIR checkout $CORPUS_COMMIT
+CORPUS_DIR=${TMPDIR}/archive
+
 for subdir in `ls ${CORPUS_DIR}`; do
     for tarfile in `ls ${CORPUS_DIR}/${subdir} | grep .tgz`; do
        tarball=${CORPUS_DIR}/${subdir}/${tarfile}