From: Sage Weil Date: Fri, 17 Jan 2020 20:19:53 +0000 (-0600) Subject: qa/standalone/mon/osd-create-pool: fix utf-8 grep LANG X-Git-Tag: v15.1.0~184^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=65fbc620b66c806b4680dcf4efce92b2ac7cb93a;p=ceph.git qa/standalone/mon/osd-create-pool: fix utf-8 grep LANG This needs en_US.UTF-8... en_US does not work. Fixes: https://tracker.ceph.com/issues/43422 Signed-off-by: Sage Weil --- diff --git a/qa/standalone/mon/osd-pool-create.sh b/qa/standalone/mon/osd-pool-create.sh index b14ca803bdf6..f8ef5bd9d4a1 100755 --- a/qa/standalone/mon/osd-pool-create.sh +++ b/qa/standalone/mon/osd-pool-create.sh @@ -200,12 +200,15 @@ function TEST_utf8_cli() { # the fix for http://tracker.ceph.com/issues/7387. If it turns out # to not be OK (when is the default encoding *not* UTF-8?), maybe # the character '黄' can be replaced with the escape $'\xe9\xbb\x84' + OLDLANG="$LANG" + export LANG=en_US.UTF-8 ceph osd pool create 黄 16 || return 1 ceph osd lspools 2>&1 | \ grep "黄" || return 1 ceph -f json-pretty osd dump | \ python3 -c "import json; import sys; json.load(sys.stdin)" || return 1 ceph osd pool delete 黄 黄 --yes-i-really-really-mean-it + export LANG="$OLDLANG" } function TEST_pool_create_rep_expected_num_objects() {