From: Loic Dachary Date: Sat, 2 Jan 2016 20:51:58 +0000 (+0100) Subject: tests: instructions to collect ceph-disk coverage X-Git-Tag: v10.0.4~46^2~18 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=c7fbe2124ba992fa2bd6ca3a109a2d9929e461c3;p=ceph.git tests: instructions to collect ceph-disk coverage Signed-off-by: Loic Dachary --- diff --git a/qa/workunits/ceph-disk/ceph-disk-test.py b/qa/workunits/ceph-disk/ceph-disk-test.py index 4dd65a9402ee..f36055d8073e 100644 --- a/qa/workunits/ceph-disk/ceph-disk-test.py +++ b/qa/workunits/ceph-disk/ceph-disk-test.py @@ -36,6 +36,12 @@ # udevadm control --reload # when changing the udev rules # sudo /usr/sbin/ceph-disk -v trigger /dev/vdb1 # activates if vdb1 is data # +# integration tests coverage +# pip install coverage +# perl -pi -e 's|"ceph-disk |"coverage run --source=/usr/sbin/ceph-disk --append /usr/sbin/ceph-disk |' ceph-disk-test.py +# rm -f .coverage ; py.test -s -v ceph-disk-test.py +# coverage report --show-missing +# import argparse import json import logging