From patchwork Sat Aug 27 00:28:15 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Petr Vorel X-Patchwork-Id: 12956754 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 D90BDECAAD5 for ; Sat, 27 Aug 2022 00:28:36 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1345074AbiH0A2f (ORCPT ); Fri, 26 Aug 2022 20:28:35 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52208 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236442AbiH0A20 (ORCPT ); Fri, 26 Aug 2022 20:28:26 -0400 Received: from smtp-out2.suse.de (smtp-out2.suse.de [195.135.220.29]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B1298EA888 for ; Fri, 26 Aug 2022 17:28:24 -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 25E7A1F9B8; Sat, 27 Aug 2022 00:28:23 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.cz; s=susede2_rsa; t=1661560103; 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=3VOnVivui6wWSOrPauLaMwb0xIePAqDQskwlb3gP3/M=; b=j/YZUNWHX4tEhQFsGAEUaSPs3/RfOUGt+1MLWxCHJGvJ0zhWeYBxMqM8YZzcNn5Mxh1ZBJ YUJ3jjIIpatWgh9jKLabGe23348c4X8tLkSzYoBEaPJ2GU7skgfVjcvd3PqLts9iLcz7vZ sfNP5Z/lFIsGBAuJsvvItH4+Siy8CqA= DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=suse.cz; s=susede2_ed25519; t=1661560103; 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=3VOnVivui6wWSOrPauLaMwb0xIePAqDQskwlb3gP3/M=; b=XAPNo2yNlqebT0T18HN9J+30L+bgx5TJLjUHAvKZJwgbGf200ybuj95fwUrAIixbqT23Fz eHkm7C4taSCfGgAw== 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 C871D133A6; Sat, 27 Aug 2022 00:28:22 +0000 (UTC) Received: from dovecot-director2.suse.de ([192.168.254.65]) by imap2.suse-dmz.suse.de with ESMTPSA id AIaaLyZlCWNQCgAAMHmgww (envelope-from ); Sat, 27 Aug 2022 00:28:22 +0000 From: Petr Vorel To: ltp@lists.linux.it Cc: Petr Vorel , Cyril Hrubis , Li Wang , Martin Doucha , Richard Palethorpe , Joerg Vehlow , automated-testing@lists.yoctoproject.org, Tim Bird , linux-fsdevel@vger.kernel.org Subject: [PATCH 6/6] tst_test.sh: Pass used filesystem to tst_device Date: Sat, 27 Aug 2022 02:28:15 +0200 Message-Id: <20220827002815.19116-7-pvorel@suse.cz> X-Mailer: git-send-email 2.37.2 In-Reply-To: <20220827002815.19116-1-pvorel@suse.cz> References: <20220827002815.19116-1-pvorel@suse.cz> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-fsdevel@vger.kernel.org This allow to get smaller minimal required size. Signed-off-by: Petr Vorel Reviewed-by: Cyril Hrubis --- testcases/lib/tst_test.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/testcases/lib/tst_test.sh b/testcases/lib/tst_test.sh index 7aea9ee5f..1eb0ce91c 100644 --- a/testcases/lib/tst_test.sh +++ b/testcases/lib/tst_test.sh @@ -694,7 +694,7 @@ tst_run() TST_MNTPOINT="${TST_MNTPOINT:-$PWD/mntpoint}" if [ "$TST_NEEDS_DEVICE" = 1 ]; then - TST_DEVICE=$(tst_device acquire) + TST_DEVICE=$(tst_device -f $TST_FS_TYPE acquire) if [ ! -b "$TST_DEVICE" -o $? -ne 0 ]; then unset TST_DEVICE