Skip to content

Commit

Permalink
qa/workunits/cephadm/test_repos: compile cephadm
Browse files Browse the repository at this point in the history
build the compiled cephadm binary during the workunit test

Signed-off-by: Michael Fritch <[email protected]>
  • Loading branch information
mgfritch authored and phlogistonjohn committed Sep 13, 2022
1 parent 814740d commit 0f67723
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion qa/workunits/cephadm/test_repos.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,14 @@
SCRIPT_NAME=$(basename ${BASH_SOURCE[0]})
SCRIPT_DIR=$(dirname ${BASH_SOURCE[0]})
CEPHADM_SRC_DIR=${SCRIPT_DIR}/../../../src/cephadm
CEPHADM=${CEPHADM_SRC_DIR}/cephadm

[ -d "$TMPDIR" ] || TMPDIR=$(mktemp -d tmp.$SCRIPT_NAME.XXXXXX)
trap "$SUDO rm -rf $TMPDIR" EXIT

if [ -z "$CEPHADM" ]; then
CEPHADM=`mktemp -p $TMPDIR tmp.cephadm.XXXXXX`
${CEPHADM_SRC_DIR}/build.sh "$CEPHADM"
fi

# this is a pretty weak test, unfortunately, since the
# package may also be in the base OS.
Expand Down

0 comments on commit 0f67723

Please sign in to comment.