From patchwork Mon Jul 9 22:56:39 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bart Van Assche X-Patchwork-Id: 10515911 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 5F453604D4 for ; Mon, 9 Jul 2018 22:56:50 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 52D0D28BAE for ; Mon, 9 Jul 2018 22:56:50 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 46E3728BD7; Mon, 9 Jul 2018 22:56:50 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-7.8 required=2.0 tests=BAYES_00,DKIM_SIGNED, MAILING_LIST_MULTI, RCVD_IN_DNSWL_HI, T_DKIM_INVALID autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 0561D28BCA for ; Mon, 9 Jul 2018 22:56:50 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754326AbeGIW4r (ORCPT ); Mon, 9 Jul 2018 18:56:47 -0400 Received: from esa2.hgst.iphmx.com ([68.232.143.124]:52596 "EHLO esa2.hgst.iphmx.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754475AbeGIW4p (ORCPT ); Mon, 9 Jul 2018 18:56:45 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=wdc.com; i=@wdc.com; q=dns/txt; s=dkim.wdc.com; t=1531177300; x=1562713300; h=from:to:cc:subject:date:message-id:in-reply-to: references; bh=avUOfJZLoFUir25GLEMba1MzMZjtXzISeBRx+RvpBWE=; b=nyrO7WIFwvcyhguRi2GUVM1tWi1KLJO+WOQwq2anYqgXILmeZNdODVaD 5MhgdnCqlWAaphUv4hGZDPXtU3qdFXLi1UYLNt5xcjX+Ahg7WrPJLtvyX kRzh2wpnoASKyg2iS7jH3IHGR/X18fz67TYwICPW5xOV0bTJmnIucBDoA Dsf1W+3i5musq3pck+9E7reOhKEhuyq+FEa6dbo29Zj4niv6AuClw0sDi Rcdp5Hnkjs7WTqWl0Ht86i7RHQmHOTFuzWAWL//GrQGZIqdXPz6oFmOdQ HU9uELmCh0ireTqBDMOkTXSsqHTjeYeDqmu6lb0W3EpMU2kpXA0MmIHKU g==; X-IronPort-AV: E=Sophos;i="5.51,330,1526313600"; d="scan'208";a="180580407" Received: from h199-255-45-14.hgst.com (HELO uls-op-cesaep01.wdc.com) ([199.255.45.14]) by ob1.hgst.iphmx.com with ESMTP; 10 Jul 2018 07:01:38 +0800 Received: from uls-op-cesaip02.wdc.com ([10.248.3.37]) by uls-op-cesaep01.wdc.com with ESMTP; 09 Jul 2018 15:45:47 -0700 Received: from thinkpad-bart.sdcorp.global.sandisk.com ([10.111.67.248]) by uls-op-cesaip02.wdc.com with ESMTP; 09 Jul 2018 15:56:44 -0700 From: Bart Van Assche To: Omar Sandoval Cc: linux-block@vger.kernel.org, Bart Van Assche Subject: [PATCH blktests v3 2/6] check: Make $FULL an absolute path Date: Mon, 9 Jul 2018 15:56:39 -0700 Message-Id: <20180709225643.10537-3-bart.vanassche@wdc.com> X-Mailer: git-send-email 2.18.0 In-Reply-To: <20180709225643.10537-1-bart.vanassche@wdc.com> References: <20180709225643.10537-1-bart.vanassche@wdc.com> Sender: linux-block-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-block@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP This makes it safe to use $FULL in shell code that modifies (and restores) the working directory. Signed-off-by: Bart Van Assche --- check | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/check b/check index a63553120635..5f4461f8b5b4 100755 --- a/check +++ b/check @@ -313,7 +313,7 @@ _call_test() { local test_func="$1" local seqres="${RESULTS_DIR}/${TEST_NAME}" # shellcheck disable=SC2034 - FULL="${seqres}.full" + FULL="$PWD/${seqres}.full" declare -A TEST_DEV_QUEUE_SAVED _read_last_test_run