From patchwork Wed Sep 4 03:58:08 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Wei Gao X-Patchwork-Id: 1980433 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=aPqHR7OF; 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=FEBZpWA7; 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 4Wz7yB4lFDz1yg3 for ; Wed, 4 Sep 2024 13:58:23 +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=1725422301; 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=Ex4sr9J4H7bnfbjdcXH4Ef8KhdNUHuIAV2s2GvG9PUc=; b=aPqHR7OFjVv5N1O/67nqw04MBSnsEcwz7FfTl8hs3GgnaLsK6c4CbMUd7ABgPrZPPLrUD WsfkuMt4oCH30J9uZX5vqAQkRrGkvD3g/Xn7FgGFsmgTXDrx4FyYMIO8JqzYX4YhGSoIIAl 3CY1jwJXliSAsvsFqZe26DaXUd6J5/U= Received: from picard.linux.it (localhost [IPv6:::1]) by picard.linux.it (Postfix) with ESMTP id 3703E3C1508 for ; Wed, 4 Sep 2024 05:58:21 +0200 (CEST) X-Original-To: ltp@lists.linux.it Delivered-To: ltp@picard.linux.it Received: from in-2.smtp.seeweb.it (in-2.smtp.seeweb.it [IPv6:2001:4b78:1:20::2]) (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 E593E3C0BA7 for ; Wed, 4 Sep 2024 05:58:17 +0200 (CEST) Received: from mail-ej1-x634.google.com (mail-ej1-x634.google.com [IPv6:2a00:1450:4864:20::634]) (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-2.smtp.seeweb.it (Postfix) with ESMTPS id 3D208602BDC for ; Wed, 4 Sep 2024 05:58:16 +0200 (CEST) Received: by mail-ej1-x634.google.com with SMTP id a640c23a62f3a-a86b46c4831so693410166b.1 for ; Tue, 03 Sep 2024 20:58:16 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.com; s=google; t=1725422295; x=1726027095; 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=uPAyUILuhINWNznvsZ1IZK3edjHuHbIR9ngBLtcTXj0=; b=FEBZpWA7/hiSuxFtcFAns8Dn/thZfLPibFPsCimeDJQZyS5TsGGXW23H61hMEa+nXX YxlXXfMPukslPh0vfVV1oUlVNGRGl3tjg6eEra9uun3olqt8TuQ9hblbMCGAFafpk4CQ NU9xvbVIbWT7uXBaL+CfZ7FaP7Iu+Th/2C6wL4M6sQwTlZxtcOD1yVp7srPf7ta8tzUb KB/Fd+gALhKVWWcCkRYiurn74FIjaaXIFyMXOS7bi8Ckk3RWtUUgesbHoE7tK4NdMDhH /uHOqVV7gytz1K5fzSg5pcSTw8wQK4G3Cd+2xCQdjZz4uxZoOxBe88FTfwtcmmC92mNq gWKg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1725422295; x=1726027095; 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=uPAyUILuhINWNznvsZ1IZK3edjHuHbIR9ngBLtcTXj0=; b=DUYqGdkznst01ZNWEoyercnfRhLeaboN6oXfKDbWu5pYm0bGs5sKkiLUgW11QUhSB+ grMMlRDHlwpSef5WEWzJqD7FqImKB5opq6+fCQMr/YLAjRaAOXwsijFnJA4KQe03VhQM pWDHv4ubA1Y+ES3DrfXpV/xh/8fTyLjAQE1/2UR3xEqCH+F/PMAhBjlwWYUo5aENWvi7 bXrX4r7S2t+TMRBYxQSGQhGyzRzQbpmksBqJcwuN+eSa/WjVk26Obv3vWUW0sZa7TeSS crJ1ooT3yF6vVd+d/blHCE47IHHVQuIAdOSb1D9B0DlOTEIFHzJdvfJIHyxNz54rZo10 niRA== X-Gm-Message-State: AOJu0Yzp+3lX7JYrc+sTzXic1HAOLT9ZWaV5qHaTMhCz3tq/Oi+IPKng LQ3acR1RILcvyGMyLbzvJ2f5O+wy8RERi81JWyzt9zow3Lu5PgMUNhHMZOr4XPp7/ZkmgF2j43Y = X-Google-Smtp-Source: AGHT+IH18PX6p2/TGEYi1iYwiMJSMUMJuAHhl/+MbxNrZyCSzuk0kTjQmu4pzuHtmNwazJ6Kdc++Cw== X-Received: by 2002:a17:907:3684:b0:a77:b5c2:399 with SMTP id a640c23a62f3a-a89d879c0a9mr921669566b.31.1725422294861; Tue, 03 Sep 2024 20:58:14 -0700 (PDT) Received: from localhost ([202.127.77.110]) by smtp.gmail.com with ESMTPSA id a640c23a62f3a-a8989196b89sm754293566b.114.2024.09.03.20.58.13 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 03 Sep 2024 20:58:14 -0700 (PDT) To: ltp@lists.linux.it Date: Tue, 3 Sep 2024 23:58:08 -0400 Message-Id: <20240904035808.5891-1-wegao@suse.com> X-Mailer: git-send-email 2.35.3 In-Reply-To: <20240903081916.27033-1-wegao@suse.com> References: <20240903081916.27033-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,DMARC_PASS,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-2.smtp.seeweb.it X-Virus-Scanned: clamav-milter 1.0.3 at in-2.smtp.seeweb.it X-Virus-Status: Clean Subject: [LTP] [PATCH v4] 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 Reviewed-by: Petr Vorel --- testcases/network/mpls/mpls01.sh | 4 ++-- testcases/network/mpls/mpls_lib.sh | 10 ++++++++++ 2 files changed, 12 insertions(+), 2 deletions(-) diff --git a/testcases/network/mpls/mpls01.sh b/testcases/network/mpls/mpls01.sh index 196b5b2f9..e453f8130 100755 --- a/testcases/network/mpls/mpls01.sh +++ b/testcases/network/mpls/mpls01.sh @@ -21,7 +21,7 @@ cleanup() setup() { - ROD modprobe mpls_router + mpls_setup_driver } test1() @@ -66,5 +66,5 @@ test3() tst_res TPASS "created and removed mpls routes" } -. tst_net.sh +. mpls_lib.sh tst_run diff --git a/testcases/network/mpls/mpls_lib.sh b/testcases/network/mpls/mpls_lib.sh index 380b568bb..2ded31ee9 100755 --- a/testcases/network/mpls/mpls_lib.sh +++ b/testcases/network/mpls/mpls_lib.sh @@ -33,6 +33,16 @@ mpls_virt_cleanup() mpls_cleanup } +mpls_setup_driver() +{ + local args + + grep -q 'sl-micro' /etc/os-release && args='--allow-unsupported' + if [ "$TST_NEEDS_DRIVERS" ]; then + tst_net_run -s "modprobe $args -a $TST_NEEDS_DRIVERS" + fi +} + mpls_setup() { local label="$1"