Message ID | 20221020120924.212843-1-akihiko.odaki@daynix.com |
---|---|
State | Superseded |
Headers | show
Return-Path: <ltp-bounces+incoming=patchwork.ozlabs.org@lists.linux.it> X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@legolas.ozlabs.org Authentication-Results: legolas.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=lists.linux.it (client-ip=2001:1418:10:5::2; helo=picard.linux.it; envelope-from=ltp-bounces+incoming=patchwork.ozlabs.org@lists.linux.it; receiver=<UNKNOWN>) Authentication-Results: legolas.ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=daynix-com.20210112.gappssmtp.com header.i=@daynix-com.20210112.gappssmtp.com header.a=rsa-sha256 header.s=20210112 header.b=Ca2F7h3A; dkim-atps=neutral Received: from picard.linux.it (picard.linux.it [IPv6:2001:1418:10:5::2]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-384)) (No client certificate requested) by legolas.ozlabs.org (Postfix) with ESMTPS id 4MtRHD5FD5z23jk for <incoming@patchwork.ozlabs.org>; Thu, 20 Oct 2022 23:09:44 +1100 (AEDT) Received: from picard.linux.it (localhost [IPv6:::1]) by picard.linux.it (Postfix) with ESMTP id 8F2393CB17B for <incoming@patchwork.ozlabs.org>; Thu, 20 Oct 2022 14:09:42 +0200 (CEST) X-Original-To: ltp@lists.linux.it Delivered-To: ltp@picard.linux.it Received: from in-3.smtp.seeweb.it (in-3.smtp.seeweb.it [IPv6:2001:4b78:1:20::3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-384)) (No client certificate requested) by picard.linux.it (Postfix) with ESMTPS id 140453CB0D1 for <ltp@lists.linux.it>; Thu, 20 Oct 2022 14:09:40 +0200 (CEST) Received: from mail-pg1-x52f.google.com (mail-pg1-x52f.google.com [IPv6:2607:f8b0:4864:20::52f]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by in-3.smtp.seeweb.it (Postfix) with ESMTPS id 8CF191A0113A for <ltp@lists.linux.it>; Thu, 20 Oct 2022 14:09:39 +0200 (CEST) Received: by mail-pg1-x52f.google.com with SMTP id q71so2158428pgq.8 for <ltp@lists.linux.it>; Thu, 20 Oct 2022 05:09:39 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=daynix-com.20210112.gappssmtp.com; s=20210112; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=eSasDhmQB6Ozb1AnWh+J605rCJmZYF7f3ngGzyVTqOc=; b=Ca2F7h3A/V6MOwr3bEvdAz+91N0plyDy3263jTXMzDGhkTYIdNx2smdWaSjD7K4HPO uf7dICWOsfZgpNm1OIv5h9f7r4VPdUnoNRuYSd2I9F5X5KgXCFTy4RNlGgZk1DglFA+N oz5vaUdKf1eS3a8JbR2RZifCz28KnZ7bsON/aqsFF8QECdn9YfgJVPLVt7+6BNxYxUVa jziB8DKA5FnrFqgyIAltO0Sean+UXZhI8/Jj+wdBvtMQWJ4ZFfpcTcjNK9wtPvBJlHa6 9riYgR6Jk5GMPuCi8S63l+QrNODat6SWuY96ovDW9i2f+5J0B/HCKhLQXTSzU8AMcMhi gTAA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=eSasDhmQB6Ozb1AnWh+J605rCJmZYF7f3ngGzyVTqOc=; b=ghZhjEryxYlI4XKtInwuzpF7fqViEgXiGpfivoYQEhO4nC5npCQhcU5uqP21+7ePky ud5kPnlDbX7m9CYn0F1OqdIYT9i2iSZNeMxBRe+ggb4mDwfPFWEtNdHG94PhEpZ4W7nc i4mHxkWSXlqu0zv5mQJ6Sn+iFEwa5/GME97X8vfug+hhhI0moa/USeUW4MS0xMzni2c5 vvGRqaNuV6XvY+YuA0BYejPOuPA3nHrhT9FglgE26SNtR4G47vqW20qRUOFl9YOccUh4 gKP/tQFznsrkmXE08s9iD5S+OYJKkvz2ZTyy+/J0Atcz/yINusb4G9HA6CxLTTFCH49v pPRg== X-Gm-Message-State: ACrzQf1rkHUmQHhhnICDHBlupcDYkLnrb1Uq9H4tskv703KprWJO7UJD ORwABG3/CTowe2fUO4gjjKs4Ag== X-Google-Smtp-Source: AMsMyM5z7oA1MjRkaL0oyEu1sFbyjCEBIfLLNkF9+sqiM/M3/LllTCF9ySuNZAwi4fnk9N9o3K2bWA== X-Received: by 2002:a63:87c7:0:b0:46b:3cf1:e163 with SMTP id i190-20020a6387c7000000b0046b3cf1e163mr11844181pge.112.1666267778116; Thu, 20 Oct 2022 05:09:38 -0700 (PDT) Received: from fedora.flets-east.jp ([2400:4050:c360:8200:8ae8:3c4:c0da:7419]) by smtp.gmail.com with ESMTPSA id nt12-20020a17090b248c00b0020ab246ac79sm1604812pjb.47.2022.10.20.05.09.36 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 20 Oct 2022 05:09:37 -0700 (PDT) From: Akihiko Odaki <akihiko.odaki@daynix.com> To: Petr Vorel <pvorel@suse.cz> Date: Thu, 20 Oct 2022 21:09:24 +0900 Message-Id: <20221020120924.212843-1-akihiko.odaki@daynix.com> X-Mailer: git-send-email 2.37.3 MIME-Version: 1.0 X-Virus-Scanned: clamav-milter 0.102.4 at in-3.smtp.seeweb.it X-Virus-Status: Clean X-Spam-Status: No, score=0.1 required=7.0 tests=DKIM_SIGNED,DKIM_VALID, SPF_HELO_NONE,SPF_NONE autolearn=disabled version=3.4.4 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on in-3.smtp.seeweb.it Subject: [LTP] [PATCH v2] tst_test.sh: Normalize the locale concerned variables X-BeenThere: ltp@lists.linux.it X-Mailman-Version: 2.1.29 Precedence: list List-Id: Linux Test Project <ltp.lists.linux.it> List-Unsubscribe: <https://lists.linux.it/options/ltp>, <mailto:ltp-request@lists.linux.it?subject=unsubscribe> List-Archive: <http://lists.linux.it/pipermail/ltp/> List-Post: <mailto:ltp@lists.linux.it> List-Help: <mailto:ltp-request@lists.linux.it?subject=help> List-Subscribe: <https://lists.linux.it/listinfo/ltp>, <mailto:ltp-request@lists.linux.it?subject=subscribe> Cc: Yan Vugenfirer <yan@daynix.com>, Yuri Benditovich <yuri.benditovich@daynix.com>, ltp@lists.linux.it Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: base64 Errors-To: ltp-bounces+incoming=patchwork.ozlabs.org@lists.linux.it Sender: "ltp" <ltp-bounces+incoming=patchwork.ozlabs.org@lists.linux.it> |
Series |
[v2] tst_test.sh: Normalize the locale concerned variables
|
expand
|
diff --git a/testcases/lib/tst_test.sh b/testcases/lib/tst_test.sh index 28b7d12ba..1681eaa1f 100644 --- a/testcases/lib/tst_test.sh +++ b/testcases/lib/tst_test.sh @@ -831,3 +831,7 @@ if [ -z "$TST_NO_DEFAULT_RUN" ]; then fi fi fi + +unset LC_ALL +export LC_COLLATE=C +export LC_NUMERIC=C
network/tcp_cmds/tracepath/tracepath01.sh fails with LANG=ja_JP.UTF-8 because it parses localized output. The below is an example of such output: $ tracepath localhost 1?: [LOCALHOST] 0.040ミリ秒 pmtu 65536 1: localhost 0.274ミリ秒 到達しました 1: localhost 0.261ミリ秒 到達しました 要約: pmtu 65536 ホップ数 1 戻りホップ数 1 To avoid such a problem, we can always normalize the locale concerned variables. network/stress/ns-tools/check_envval does that, but it is limited to the network stress test. Add code to normalize the locale to tst_test.sh so that it can cover more tests. Note that the added code is based on the kernel implementation [1] rather than the network stress test to avoid requiring locale installed. Signed-off-by: Akihiko Odaki <akihiko.odaki@daynix.com> --- testcases/lib/tst_test.sh | 4 ++++ 1 file changed, 4 insertions(+)