Fix some bugs when testing opensds ansible
[stor4nfv.git] / src / ceph / qa / workunits / rbd / test_librbd_python.sh
1 #!/bin/sh -ex
2
3 relpath=$(dirname $0)/../../../src/test/pybind
4
5 if [ -n "${VALGRIND}" ]; then
6   valgrind ${VALGRIND} --suppressions=${TESTDIR}/valgrind.supp \
7     --errors-for-leak-kinds=definite --error-exitcode=1 \
8     nosetests -v $relpath/test_rbd.py
9 else
10   nosetests -v $relpath/test_rbd.py
11 fi
12 exit 0