From patchwork Tue Sep 3 08:19:16 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Wei Gao X-Patchwork-Id: 1979874 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@legolas.ozlabs.org Authentication-Results: legolas.ozlabs.org; dkim=pass (1024-bit key; unprotected) header.d=lists.linux.it header.i=@lists.linux.it header.a=rsa-sha256 header.s=picard header.b=AEEJManS; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=suse.com header.i=@suse.com header.a=rsa-sha256 header.s=google header.b=R1lReTNd; dkim-atps=neutral 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=patchwork.ozlabs.org) 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 (secp384r1) server-digest SHA384) (No client certificate requested) by legolas.ozlabs.org (Postfix) with ESMTPS id 4Wydnt2Sqnz1yfv for ; Tue, 3 Sep 2024 18:19:30 +1000 (AEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=lists.linux.it; i=@lists.linux.it; q=dns/txt; s=picard; t=1725351568; h=to : date : message-id : in-reply-to : references : mime-version : subject : list-id : list-unsubscribe : list-archive : list-post : list-help : list-subscribe : from : reply-to : content-type : content-transfer-encoding : sender : from; bh=LPaqGpUpTWLM2StjVvl7IpF47NwLj1Bni4UiEF4Rlxc=; b=AEEJManSz7XqbRfHGU0Gw9dxDSOh/pmcZ7/0dIADWKBt1eFYBXpAL0LA5rYUIiPmQz2KL FLSlZCHxTIpDmchnLx2g4YiTtpATC0K5VwFqZ6a1BgIQWhppEgfx66qLoUDcm0A8g/w69UH AdCexr9cgs3bM1OzInILXs8htFykJ54= Received: from picard.linux.it (localhost [IPv6:::1]) by picard.linux.it (Postfix) with ESMTP id 03CD43C0CA8 for ; Tue, 3 Sep 2024 10:19:28 +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 (secp384r1)) (No client certificate requested) by picard.linux.it (Postfix) with ESMTPS id 844143C0303 for ; Tue, 3 Sep 2024 10:19:24 +0200 (CEST) Received: from mail-ej1-x636.google.com (mail-ej1-x636.google.com [IPv6:2a00:1450:4864:20::636]) (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 272BE1A00E63 for ; Tue, 3 Sep 2024 10:19:24 +0200 (CEST) Received: by mail-ej1-x636.google.com with SMTP id a640c23a62f3a-a86abbd68ffso824197766b.0 for ; Tue, 03 Sep 2024 01:19:24 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.com; s=google; t=1725351563; x=1725956363; darn=lists.linux.it; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=7Q0B+jV4yiTtBFJmzIxsbNQIbtceLwnI+pi3Td9pDXc=; b=R1lReTNdS1NNVL5kPkjDrvl5Kn64lxI2xTzlhTtC9mSB/MWWwZH5opLNNX/znSNLaj 0UEZXrA03eMIq1pg1F8w08OO/KePoUk1sGQMpxpuejO1J9xy/p2e7zSWHRBVnMmNFxuS okBV3YBxaDaqU8Ao3QuicJQrOdYNqUg5t/AMKgLOhx8rIg/TgLKKhcsl1GkKB0nICTIG HT4J+NhEjJnVNMLDI7wGqvFWI2gQIpXq4Kq4MuAYFsEANl8v+8xoBuduU6F0Y2qWkOGf qi5NUZ/xKAkEyE5BeG0zWX/W1bHBj8LIDB9DuA30irHcgTn2qQg1YHa2uu9Dl7I9gIlt VREA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1725351563; x=1725956363; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=7Q0B+jV4yiTtBFJmzIxsbNQIbtceLwnI+pi3Td9pDXc=; b=QURiIaalQzFt7DMyaZZGxMNTeQ7PBSASflt6Xgw87BdhxqISO/gUdEsCy/VPgKaIsz PcAK5BSroTn1fYD43MjhEPpjkusuWMAhIiJ82BMvLt8eOTcGYmKiPFIkG8quv7s+I3wv pEkFBf6aki60lswpyjHVqgnZH0tTPTfuByN4uaEVonUWv/nA/oKQzO1C6q+7o8cFdpRf 97vfQ41J34Pwn/fKx4a5MZxcY4FGY0a2doaTZpIANIuf48w+oaOizXQQnKitOYoKOkNA waz93sdyAt/9seF5cUnWWlrZbR4x4lTecMyPmE1AE9zP8K2J4VBVvOIW/xcpVnYnKx2w fz8w== X-Gm-Message-State: AOJu0YyOmbbfQVsWLVjihDisuF/5QkjpOoH9l21Zr8NaCa+U/b547/nr WJlrNs1JoS8yyepUeVarNwrAQaqRnAoSx0giXzTCA4bKMduQgxU6RPEslvEnzvhby3FDSLhRjWY = X-Google-Smtp-Source: AGHT+IGvGFMweikFElNQcZ6IoSIFORzWBszD5LIa5pHJoXA+3af7SCzf9L/yVzIJT36F/CUyvUuZEA== X-Received: by 2002:a17:907:d867:b0:a7a:a4cf:4f93 with SMTP id a640c23a62f3a-a89a29f6270mr1293878666b.32.1725351562865; Tue, 03 Sep 2024 01:19:22 -0700 (PDT) Received: from localhost ([202.127.77.110]) by smtp.gmail.com with ESMTPSA id a640c23a62f3a-a8989035f80sm648846466b.78.2024.09.03.01.19.21 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 03 Sep 2024 01:19:22 -0700 (PDT) To: ltp@lists.linux.it Date: Tue, 3 Sep 2024 04:19:16 -0400 Message-Id: <20240903081916.27033-1-wegao@suse.com> X-Mailer: git-send-email 2.35.3 In-Reply-To: <20240902024017.6404-1-wegao@suse.com> References: <20240902024017.6404-1-wegao@suse.com> MIME-Version: 1.0 X-Spam-Status: No, score=0.1 required=7.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_NONE,SPF_PASS, T_SCC_BODY_TEXT_LINE shortcircuit=no autolearn=disabled version=4.0.0 X-Spam-Checker-Version: SpamAssassin 4.0.0 (2022-12-13) on in-3.smtp.seeweb.it X-Virus-Scanned: clamav-milter 1.0.3 at in-3.smtp.seeweb.it X-Virus-Status: Clean Subject: [LTP] [PATCH v3] mpls01.sh: Add --allow-unsupported for modprobe X-BeenThere: ltp@lists.linux.it X-Mailman-Version: 2.1.29 Precedence: list List-Id: Linux Test Project List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-Patchwork-Original-From: Wei Gao via ltp From: Wei Gao Reply-To: Wei Gao Errors-To: ltp-bounces+incoming=patchwork.ozlabs.org@lists.linux.it Sender: "ltp" In sle-micro we encounter following error when do modprobe: root# modprobe mpls_router modprobe: ERROR: module 'mpls_router' is unsupported modprobe: ERROR: Use --allow-unsupported or set allow_unsupported_modules 1 in modprobe: ERROR: /etc/modprobe.d/10-unsupported-modules.conf modprobe: ERROR: could not insert 'mpls_router': Operation not permitted Signed-off-by: Wei Gao Reviewed-by: Petr Vorel --- testcases/network/mpls/mpls01.sh | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/testcases/network/mpls/mpls01.sh b/testcases/network/mpls/mpls01.sh index 196b5b2f9..892b5bd85 100755 --- a/testcases/network/mpls/mpls01.sh +++ b/testcases/network/mpls/mpls01.sh @@ -21,7 +21,11 @@ cleanup() setup() { - ROD modprobe mpls_router + if grep -q 'sl-micro' /etc/os-release; then + ROD modprobe --allow-unsupported mpls_router + else + ROD modprobe mpls_router + fi } test1()