From aac7a85a3ae9cce38987ce3f51be4c6cb63c8dd2 Mon Sep 17 00:00:00 2001 From: Kefu Chai Date: Tue, 21 Nov 2017 21:47:30 +0800 Subject: [PATCH] qa/workunits: silence py warnings for ceph-disk tests 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 (cherry picked from commit d44334f31704487ec3574738e75145872d9932cf) --- qa/workunits/ceph-disk/ceph-disk.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/qa/workunits/ceph-disk/ceph-disk.sh b/qa/workunits/ceph-disk/ceph-disk.sh index 7a795b925d68..7102efba181c 100755 --- a/qa/workunits/ceph-disk/ceph-disk.sh +++ b/qa/workunits/ceph-disk/ceph-disk.sh @@ -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 -- 2.47.3