mirror of
https://github.com/ceph/ceph
synced 2024-12-24 20:33:27 +00:00
182676d6bf
Signed-off-by: Joe Julian <me@joejulian.name>
27 lines
653 B
Bash
Executable File
27 lines
653 B
Bash
Executable File
#!/bin/bash
|
|
if [ -f $(dirname $0)/../ceph-helpers-root.sh ]; then
|
|
source $(dirname $0)/../ceph-helpers-root.sh
|
|
else
|
|
echo "$(dirname $0)/../ceph-helpers-root.sh does not exist."
|
|
exit 1
|
|
fi
|
|
|
|
install python-pytest || true
|
|
install pytest || true
|
|
|
|
PATH=$(dirname $0)/..:$PATH
|
|
|
|
if ! which py.test > /dev/null; then
|
|
echo "py.test not installed"
|
|
exit 1
|
|
fi
|
|
|
|
sudo env PATH=$(dirname $0)/..:$PATH py.test -v $(dirname $0)/ceph-disk-test.py
|
|
result=$?
|
|
|
|
# own whatever was created as a side effect of the py.test run
|
|
# so that it can successfully be removed later on by a non privileged
|
|
# process
|
|
sudo chown -R $(id -u) $(dirname $0)
|
|
exit $result
|