3 if [ -f $BASEDIR/..
/ceph-helpers-root.sh
]; then
4 source $BASEDIR/..
/ceph-helpers-root.sh
6 echo "$BASEDIR/../ceph-helpers-root.sh does not exist."
10 PATH
=$BASEDIR:$BASEDIR/..
:$PATH
17 # pytest supports python 2.7 up until the pytest 4.6 release, the 5.x series
18 # supports Python 3 only
19 sudo
-H pip
install "pytest==4.6.6"
20 $PYTHON -m pytest
--version
22 # complete the cluster setup done by the teuthology ceph task
23 sudo chown $
(id
-u) /etc
/ceph
/ceph.conf
24 if ! test -f /etc
/ceph
/ceph.client.admin.keyring
; then
25 sudo
cp /etc
/ceph
/ceph.keyring
/etc
/ceph
/ceph.client.admin.keyring
27 if ! sudo
test -f /var
/lib
/ceph
/bootstrap-osd
/ceph.keyring
; then
28 sudo ceph-create-keys
--id a
30 sudo ceph osd crush
rm osd
.0 || true
31 sudo ceph osd crush
rm osd
.1 || true
33 sudo
cp $BASEDIR/60-ceph-by-partuuid.rules
/lib
/udev
/rules.d
34 sudo udevadm control
--reload
36 sudo perl
-pi -e 's|pid file.*|pid file = /var/run/ceph/\$cluster-\$name.pid|' /etc
/ceph
/ceph.conf
38 sudo env PATH
=$PATH PYTHONWARNINGS
=ignore
${PYTHON} -m pytest
-s -v --rootdir=$BASEDIR $BASEDIR/ceph-disk-test.py
41 sudo
rm -rf $BASEDIR/.pytest_cache
42 sudo
rm -f /lib
/udev
/rules.d
/60-ceph-by-partuuid.rules
43 # own whatever was created as a side effect of the py.test run
44 # so that it can successfully be removed later on by a non privileged
46 sudo chown
-R $
(id
-u) $BASEDIR