Received: by 2002:ac0:e350:0:0:0:0:0 with SMTP id g16csp456007imn; Wed, 3 Aug 2022 10:59:01 -0700 (PDT) X-Google-Smtp-Source: AA6agR6b3EJAhXsU6Qa78ynZPkD7pquFo2OdysTQUpV52znkXWKcc6l5LnlpeSyiQfLMDulTtwqM X-Received: by 2002:a17:90b:3947:b0:1f5:104:f8cd with SMTP id oe7-20020a17090b394700b001f50104f8cdmr5962235pjb.26.1659549541049; Wed, 03 Aug 2022 10:59:01 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1659549541; cv=none; d=google.com; s=arc-20160816; b=dJhPHD3zlu53x+CBBl0aRJPQOIPfdBEzF9Ul/YHQ1w7tssGvjHteDFxY0IMy9537e6 2GkCfPYPVaQg32tAHHMR9JLRXROtNK37aTCj3dvOaRRe1KCCQ+0z8nrHcKpqniGB3Ex/ USzNUbs/tH6BmU0XPZGBea61ZSwnZHYlE3tzWZ9D6y40BQRkCMToZfQm0EYenH/ci315 nUIWc5htcqdx3MpojcjLYGysHf9wDFx/yCu4+EM2j7FrTyJBNiLYiMQMseeYIwz6QfKq Mpko5O22qFQgnlxhG5OHcnitNW1ZzULywhmL1WnS7F++lKxOLvDP9ae2J8onsIhHD8Ji 12ng== 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 :message-id:date:subject:cc:to:from:dkim-signature:dkim-signature; bh=vGwkqsQ+MtBJKYRBuiWOlRjZ6hXXu6evziz6pEczSjI=; b=WS4aJnlab36y+5c9/L0otNDPzYPpt+P1MFU1SvaKuhUw44eceQMM/JAJETP/OMk6Wh RUUMojloDRxIXnsKnp/8pZpX1yw2c1lEL9sLktwBNabEiAg+hAWB7MwkMcEB4cGPHjDr oN76J1aeAAlNhXYuIcxzuEbvHsK8UdCcY0GhZVaEqi9AEDW3A2XdiqSazFPkrdIKjhTk UnnYl4RuevZQki8A3eYX7WVSa2xsj2xHTuEj8exBcvDa4AZZ+eQe7lN0F7cGNA5o6+7D pjufjKpTcKdTroXYBavsfSzgJWgdZFkP6T1Ui+An0AfVFjFyOONE402QuJFJ3EgHhPEj 7IZg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@suse.cz header.s=susede2_rsa header.b=oR6CKi4s; dkim=neutral (no key) header.i=@suse.cz header.s=susede2_ed25519; 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 d18-20020a170903231200b0016ef53cf5c7si3480021plh.12.2022.08.03.10.58.36; Wed, 03 Aug 2022 10:59:01 -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=oR6CKi4s; dkim=neutral (no key) header.i=@suse.cz header.s=susede2_ed25519; 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 S238079AbiHCR6b (ORCPT + 99 others); Wed, 3 Aug 2022 13:58:31 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34064 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S238290AbiHCR6B (ORCPT ); Wed, 3 Aug 2022 13:58:01 -0400 Received: from smtp-out2.suse.de (smtp-out2.suse.de [195.135.220.29]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 684E05A158 for ; Wed, 3 Aug 2022 10:58:00 -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 D2F2E20663; Wed, 3 Aug 2022 17:57:58 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.cz; s=susede2_rsa; t=1659549478; 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; bh=vGwkqsQ+MtBJKYRBuiWOlRjZ6hXXu6evziz6pEczSjI=; b=oR6CKi4sj1eXueniPPIrZSC2stImecbPrsGr6/i32DJHRP2mycfE9G2EILkFu7qC29IKII QrtxO/IH8eqV6meGOWOi0o40aVb7W8Mh/bOkAq8jzZD+FHqPxyyvwWkwCy1mI2KmhvpUtw NpzAxzmQiaemd1P7bHOUH+Nt2fFL4ec= DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=suse.cz; s=susede2_ed25519; t=1659549478; 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; bh=vGwkqsQ+MtBJKYRBuiWOlRjZ6hXXu6evziz6pEczSjI=; b=D89StyTgMgp8PMEFjdlvViNfGwibo5cqPC2Wc8nNbRmvcQOmiHphjFtYjU8DpwQnRaRsz1 EqhWAsvtTka1dHCg== 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 2ADE213A94; Wed, 3 Aug 2022 17:57:58 +0000 (UTC) Received: from dovecot-director2.suse.de ([192.168.254.65]) by imap2.suse-dmz.suse.de with ESMTPSA id 9+hEBya36mJBdQAAMHmgww (envelope-from ); Wed, 03 Aug 2022 17:57:58 +0000 From: Petr Vorel To: ltp@lists.linux.it Cc: Petr Vorel , linux-nfs@vger.kernel.org, Cyril Hrubis , Martin Doucha Subject: [PATCH 1/1] generate_lvm_runfile.sh: Fix bashism Date: Wed, 3 Aug 2022 19:57:52 +0200 Message-Id: <20220803175752.19015-1-pvorel@suse.cz> X-Mailer: git-send-email 2.37.1 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 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 ERR is not on dash (tested on 0.5.11). Signed-off-by: Petr Vorel --- testcases/misc/lvm/generate_lvm_runfile.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/testcases/misc/lvm/generate_lvm_runfile.sh b/testcases/misc/lvm/generate_lvm_runfile.sh index 72b286a69..5bf5d91d6 100755 --- a/testcases/misc/lvm/generate_lvm_runfile.sh +++ b/testcases/misc/lvm/generate_lvm_runfile.sh @@ -13,7 +13,7 @@ LVM_TMPDIR="$LVM_DIR/ltp/growfiles" generate_runfile() { - trap 'tst_brk TBROK "Cannot create LVM runfile"' ERR + trap '[ $? -eq 0 ] && exit 0 || tst_brk TBROK "Cannot create LVM runfile"' EXIT INFILE="$LTPROOT/testcases/data/lvm/runfile.tpl" OUTFILE="$LTPROOT/runtest/lvm.local" FS_LIST=`tst_supported_fs` -- 2.37.1