From nobody Wed Dec 17 11:31:07 2025 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id E911AC7EE22 for ; Fri, 21 Apr 2023 06:12:40 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233799AbjDUGGR (ORCPT ); Fri, 21 Apr 2023 02:06:17 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47314 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233769AbjDUGGG (ORCPT ); Fri, 21 Apr 2023 02:06:06 -0400 Received: from smtp-out2.suse.de (smtp-out2.suse.de [195.135.220.29]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5040F768E; Thu, 20 Apr 2023 23:05:56 -0700 (PDT) Received: from imap2.suse-dmz.suse.de (imap2.suse-dmz.suse.de [192.168.254.74]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-521) server-digest SHA512) (No client certificate requested) by smtp-out2.suse.de (Postfix) with ESMTPS id 9EEA81FDE2; Fri, 21 Apr 2023 06:05:21 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_rsa; t=1682057121; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=64UivdY+JtKHHGrkt+vaul9Etj91J7nvEO+ZQNudNu8=; b=EoDlVx7FPNaOzfpIOSof4jUY/6TuLVkrAyfprfZJfhy51GvMUM+n3ATkasGkLnJs+C5dIO Fyq7gr10RKobM0kDmJs+7SnK1o4KX/w6yFyaD46VkRmYMlY7DT3oYzbLPb0sCTY5l72lbK 6SUu6B8aGNy+riILvgXic0sEaMv6Rpk= DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_ed25519; t=1682057121; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=64UivdY+JtKHHGrkt+vaul9Etj91J7nvEO+ZQNudNu8=; b=ZoTN2WdrMBxSwpS2IqkFOu5Yqa1VIXEp6PiWZwtMiPNUAwRRCg+aBF/tgnYjlop0XjvaQb GQcRmDXfFpwu00Cg== Received: from imap2.suse-dmz.suse.de (imap2.suse-dmz.suse.de [192.168.254.74]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-521) server-digest SHA512) (No client certificate requested) by imap2.suse-dmz.suse.de (Postfix) with ESMTPS id 914831390E; Fri, 21 Apr 2023 06:05:21 +0000 (UTC) Received: from dovecot-director2.suse.de ([192.168.254.65]) by imap2.suse-dmz.suse.de with ESMTPSA id 46mJI6EnQmSAZgAAMHmgww (envelope-from ); Fri, 21 Apr 2023 06:05:21 +0000 From: Daniel Wagner To: linux-nvme@lists.infradead.org Cc: linux-kernel@vger.kernel.org, linux-block@vger.kernel.org, Chaitanya Kulkarni , Shin'ichiro Kawasaki , Daniel Wagner Subject: [PATCH REPOST blktests v2 9/9] nvme: Make the number iterations configurable Date: Fri, 21 Apr 2023 08:05:05 +0200 Message-Id: <20230421060505.10132-10-dwagner@suse.de> X-Mailer: git-send-email 2.40.0 In-Reply-To: <20230421060505.10132-1-dwagner@suse.de> References: <20230421060505.10132-1-dwagner@suse.de> MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Type: text/plain; charset="utf-8" Some tests hard code high values of iterations. This makes them run relatively long compared to the other tests. Introduce a new environment variable nvme_num_iter to allow tune the runtime. Signed-off-by: Daniel Wagner Reviewed-by: Hannes Reinecke --- tests/nvme/002 | 2 +- tests/nvme/016 | 2 +- tests/nvme/017 | 2 +- tests/nvme/rc | 1 + 4 files changed, 4 insertions(+), 3 deletions(-) diff --git a/tests/nvme/002 b/tests/nvme/002 index 6b8484844b4d..c28035483514 100755 --- a/tests/nvme/002 +++ b/tests/nvme/002 @@ -20,7 +20,7 @@ test() { =20 _setup_nvmet =20 - local iterations=3D1000 + local iterations=3D"${nvme_num_iter}" local port port=3D"$(_create_nvmet_port "${nvme_trtype}")" =20 diff --git a/tests/nvme/016 b/tests/nvme/016 index 4eba30223a08..c0c31a55b190 100755 --- a/tests/nvme/016 +++ b/tests/nvme/016 @@ -17,7 +17,7 @@ test() { echo "Running ${TEST_NAME}" =20 local port - local iterations=3D1000 + local iterations=3D"${nvme_num_iter}" local loop_dev local subsys_nqn=3D"blktests-subsystem-1" =20 diff --git a/tests/nvme/017 b/tests/nvme/017 index 0248aee9bc41..e1674508f654 100755 --- a/tests/nvme/017 +++ b/tests/nvme/017 @@ -18,7 +18,7 @@ test() { =20 local port local file_path - local iterations=3D1000 + local iterations=3D"${nvme_num_iter}" local subsys_name=3D"blktests-subsystem-1" =20 _setup_nvmet diff --git a/tests/nvme/rc b/tests/nvme/rc index 2aa34fb0c9b8..bb135502220a 100644 --- a/tests/nvme/rc +++ b/tests/nvme/rc @@ -18,6 +18,7 @@ def_hostnqn=3D"$(cat /etc/nvme/hostnqn 2> /dev/null)" def_hostid=3D"$(cat /etc/nvme/hostid 2> /dev/null)" nvme_trtype=3D${nvme_trtype:-"loop"} nvme_img_size=3D${nvme_img_size:-"350M"} +nvme_num_iter=3D${nvme_num_iter:-"100"} =20 _nvme_requires() { _have_program nvme --=20 2.40.0