Received: by 2002:a6b:7707:0:0:0:0:0 with SMTP id n7csp971382iom; Thu, 9 Jun 2022 15:04:37 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzCHzaGJ7wygtJp1b9lKqrGMazeTxUbAJQZgMBrcTnvM4jQbSmfifCx4JiiNwClyYb7PQIi X-Received: by 2002:a17:907:7d8a:b0:6fe:dccb:cf4c with SMTP id oz10-20020a1709077d8a00b006fedccbcf4cmr39067531ejc.714.1654812276797; Thu, 09 Jun 2022 15:04:36 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1654812276; cv=none; d=google.com; s=arc-20160816; b=GhSMEHEUuNFM1DtWfxnwzg/R5Pz1s/h53b1QWaducMSMGEEr5h8l57lvx1cU1KGhvS tvnU01ltVgTev22J9IKAu7eACzQNQ1QfxdVx3DlAuXl4OJ2oynUecYDFI9sDGtTFYiL0 0RcXJ9xYZgaL2n7R3WUFhKlZfkJ+jAVdJjRhOtS6OyNh5VgBtptwuhI9oh+nFbbZlSiZ BSgulPntV14iRi51dOIaR2vsS1G8ymJN8c3fg3OZldyLAKhQgvQiPMJLEzLCyMfyCrpg v+QdkA/Um0NfbHP9QVfOvq1/mbrIKqEBdcA9nLmsuY6vejs31rlHXcofKyu2Nfj2Ur8o fDKA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature:dkim-signature; bh=K+4tIzneSRbXDM3XWl74zqNPPnbr/cbhyDXTom6R6N0=; b=ffDB2ZhAnkJJzYfOsVs76VAswwyE6hYo1KMEnqmTuUqZ3SqexN9M54z1Lkf4tc6u6w JFhEXgO4wXHfIR3dXjGC2eWo6y5aGrDfvJDTMa0efTef8iNHJUbpId3hNpF/71GaAdv3 2ICCkOUU4sY5aTA9MPx0pjj+qnKyyOwIeGWVcYxnLSyoheyU/I9mkiHVZO7jOpRwKgMX qDIQ3q0KkGt9af0Rfa9MUhdSjGHsFbOQ8Y9JrFyA6SHcwomeKIeWAGtcjbUG6284SrOW HgAgz9LsizUneZSfIZGZCVRrZo2TdQRDU5y2krBlIJJMw5tOYGIBCr+KSm0ouzoTfTnD hGuQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@suse.cz header.s=susede2_rsa header.b=PpoWsU0E; dkim=neutral (no key) header.i=@suse.cz header.s=susede2_ed25519 header.b=3SX7rRT5; spf=pass (google.com: domain of linux-nfs-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-nfs-owner@vger.kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id sg30-20020a170907a41e00b00711d56b4ec7si12820375ejc.945.2022.06.09.15.04.11; Thu, 09 Jun 2022 15:04:36 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-nfs-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@suse.cz header.s=susede2_rsa header.b=PpoWsU0E; dkim=neutral (no key) header.i=@suse.cz header.s=susede2_ed25519 header.b=3SX7rRT5; spf=pass (google.com: domain of linux-nfs-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-nfs-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229813AbiFIVmk (ORCPT + 99 others); Thu, 9 Jun 2022 17:42:40 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37218 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236561AbiFIVmi (ORCPT ); Thu, 9 Jun 2022 17:42:38 -0400 Received: from smtp-out1.suse.de (smtp-out1.suse.de [195.135.220.28]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C206B66AEE for ; Thu, 9 Jun 2022 14:42:33 -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-out1.suse.de (Postfix) with ESMTPS id 6F11222090; Thu, 9 Jun 2022 21:42:32 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.cz; s=susede2_rsa; t=1654810952; 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=K+4tIzneSRbXDM3XWl74zqNPPnbr/cbhyDXTom6R6N0=; b=PpoWsU0EZiOXdsvjzNaAyJo3Jd+xt+eqFNyhKXsPIXPHxgUiPJanWO/413ibxGWs/GGpZk EWCQvv+PYo9qALto9V/Wh3Lgt0xmOWTzxZu/l0ch2rEib22b59OMKtoHQ31evoLsACmuaa suwyRx9zgmKeX+uwBhtIegv1+p29SSE= DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=suse.cz; s=susede2_ed25519; t=1654810952; 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=K+4tIzneSRbXDM3XWl74zqNPPnbr/cbhyDXTom6R6N0=; b=3SX7rRT5VMOHkTxEegGUO59CLRfnqshwRCUYrH1WAAkKcjVHXxJkY/LjHqa9Qv1RSKlxKP a0o+wcRhxuqkTdCg== 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 3F5D513A8C; Thu, 9 Jun 2022 21:42:32 +0000 (UTC) Received: from dovecot-director2.suse.de ([192.168.254.65]) by imap2.suse-dmz.suse.de with ESMTPSA id IF9BDUhpomIQDgAAMHmgww (envelope-from ); Thu, 09 Jun 2022 21:42:32 +0000 From: Petr Vorel To: ltp@lists.linux.it Cc: Petr Vorel , linux-nfs@vger.kernel.org Subject: [PATCH v2 3/9] tst_test.sh: allow ' in pattern for allowed variables Date: Thu, 9 Jun 2022 23:42:17 +0200 Message-Id: <20220609214223.4608-4-pvorel@suse.cz> X-Mailer: git-send-email 2.36.1 In-Reply-To: <20220609214223.4608-1-pvorel@suse.cz> References: <20220609214223.4608-1-pvorel@suse.cz> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED,SPF_HELO_NONE, SPF_PASS,T_SCC_BODY_TEXT_LINE,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-nfs@vger.kernel.org to allow using '... $TST_FOO' i.e. without filtering ' EXPECT_PASS "grep '$TST_MNTPOINT $TST_FS_TYPE' /proc/mounts" would produce warning: tst_mount_device 1 TWARN: Reserved variable TST_FS_TYPE' used! because sed filters it as: FS_TYPE' Will be needed for next commit. Signed-off-by: Petr Vorel --- 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 740115385..f9ff9bcb4 100644 --- a/testcases/lib/tst_test.sh +++ b/testcases/lib/tst_test.sh @@ -621,7 +621,7 @@ tst_run() local _tst_name if [ -n "$TST_TEST_PATH" ]; then - for _tst_i in $(grep '^[^#]*\bTST_' "$TST_TEST_PATH" | sed 's/.*TST_//; s/[="} \t\/:`].*//'); do + for _tst_i in $(grep '^[^#]*\bTST_' "$TST_TEST_PATH" | sed 's/.*TST_//; s/[='\''"} \t\/:`].*//'); do case "$_tst_i" in DISABLE_APPARMOR|DISABLE_SELINUX);; SETUP|CLEANUP|TESTFUNC|ID|CNT|MIN_KVER);; -- 2.36.1