summaryrefslogtreecommitdiffstats
path: root/qa/workunits/rbd/test_librbd_python.sh
blob: 88bfb810a78df64bfc696388d9adab9c3876b7e3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
#!/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 \
    python3 -m nose -v $relpath/test_rbd.py
else
    python3 -m nose -v $relpath/test_rbd.py
fi
exit 0