]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
qa/workunits: silence py warnings for ceph-disk tests 19075/head
authorKefu Chai <kchai@redhat.com>
Tue, 21 Nov 2017 13:47:30 +0000 (21:47 +0800)
committerKefu Chai <kchai@redhat.com>
Tue, 21 Nov 2017 13:49:48 +0000 (21:49 +0800)
ceph-disk now prints "depreacted" warning message when it starts. but
the tests parses its stdout and stderr for a json string. so we need to
silence the warnings for the tests.

Fixes: http://tracker.ceph.com/issues/22154
Signed-off-by: Kefu Chai <kchai@redhat.com>
qa/workunits/ceph-disk/ceph-disk.sh

index b9af6254ffda70c73f94f5fdc6b3498eff89e55c..8a22279a697ab05ab5b39ca4783a070a4909edb4 100755 (executable)
@@ -35,7 +35,7 @@ if ! ${PYTHON} -m pytest --version > /dev/null 2>&1; then
     exit 1
 fi
 
-sudo env PATH=$(dirname $0):$(dirname $0)/..:$PATH ${PYTHON} -m pytest -s -v $(dirname $0)/ceph-disk-test.py
+sudo env PATH=$(dirname $0):$(dirname $0)/..:$PATH PYTHONWARNINGS=ignore ${PYTHON} -m pytest -s -v $(dirname $0)/ceph-disk-test.py
 result=$?
 
 sudo rm -f /lib/udev/rules.d/60-ceph-by-partuuid.rules