ceph/qa/workunits/rbd/test_librbd_python.sh
Jason Dillaman 9035349037 qa: rbd valgrind tests should use failure exit code
Signed-off-by: Jason Dillaman <dillaman@redhat.com>
2017-06-02 08:55:08 -04:00

13 lines
305 B
Bash
Executable File

#!/bin/sh -ex
relpath=$(dirname $0)/../../../src/test/pybind
if [ -n "${VALGRIND}" ]; then
valgrind ${VALGRIND} --suppressions=${TESTDIR}/valgrind.supp \
--errors-for-leak-kinds=definite --error-exitcode=1 \
nosetests -v $relpath/test_rbd.py
else
nosetests -v $relpath/test_rbd.py
fi
exit 0