From 8a37e26ea5e024a0ff71793ca7e935b3bc597095 Mon Sep 17 00:00:00 2001 From: xu_lu2 Date: Mon, 15 May 2023 18:25:15 +0800 Subject: [PATCH] modify oe_test_gettext.sh --- .../smoke-test/smoke-basic-os/oe_test_gettext/oe_test_gettext.sh | 1 + 1 file changed, 1 insertion(+) diff --git a/testcases/smoke-test/smoke-basic-os/oe_test_gettext/oe_test_gettext.sh b/testcases/smoke-test/smoke-basic-os/oe_test_gettext/oe_test_gettext.sh index 5aad01859..630e9e63d 100644 --- a/testcases/smoke-test/smoke-basic-os/oe_test_gettext/oe_test_gettext.sh +++ b/testcases/smoke-test/smoke-basic-os/oe_test_gettext/oe_test_gettext.sh @@ -54,6 +54,7 @@ EOF mkdir -p locale/en_US/LC_MESSAGES/ msgfmt -o locale/zh_CN/LC_MESSAGES/test.mo test.po CHECK_RESULT $? 0 0 "Can't generate mo file" + LANG=zh_CN.UTF-8 python3 test.py | grep "你好" CHECK_RESULT $? 0 0 "test.py cannot be executed properly or Unable to filter necessary characters" xgettext -k_ -o us.po test.py -- Gitee