From patchwork Tue Dec 3 12:55:54 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Kusanagi Kouichi X-Patchwork-Id: 11271239 Return-Path: Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 201A3930 for ; Tue, 3 Dec 2019 12:55:56 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 090992070A for ; Tue, 3 Dec 2019 12:55:56 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726079AbfLCMzz (ORCPT ); Tue, 3 Dec 2019 07:55:55 -0500 Received: from snd00007.auone-net.jp ([111.86.247.7]:6533 "EHLO dmta0004.auone-net.jp" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726017AbfLCMzz (ORCPT ); Tue, 3 Dec 2019 07:55:55 -0500 Received: from ppp.dion.ne.jp by dmta0004.auone-net.jp with ESMTP id <20191203125554271.ZCVM.12759.ppp.dion.ne.jp@dmta0004.auone-net.jp> for ; Tue, 3 Dec 2019 21:55:54 +0900 Date: Tue, 3 Dec 2019 21:55:54 +0900 From: Kusanagi Kouichi To: fstests@vger.kernel.org Subject: [PATCH] generic: Use $RESULT_DIR instead of $here MIME-Version: 1.0 Content-Disposition: inline User-Agent: Mutt/1.12.2 (2019-09-21) Message-Id: <20191203125554271.ZCVM.12759.ppp.dion.ne.jp@dmta0004.auone-net.jp> Sender: fstests-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: fstests@vger.kernel.org If $here is not writable, tests fail. Signed-off-by: Kusanagi Kouichi --- tests/generic/075 | 10 +++++----- tests/generic/112 | 6 +++--- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/tests/generic/075 b/tests/generic/075 index 923c9e4f..df2087c3 100755 --- a/tests/generic/075 +++ b/tests/generic/075 @@ -55,16 +55,16 @@ _do_test() fi fi - # This cd and use of -P gets full debug on $here (not TEST_DEV) + # This cd and use of -P gets full debug on "$RESULT_DIR" (not TEST_DEV) cd $out - if ! $here/ltp/fsx $_param -P $here $seq.$_n $FSX_AVOID &>/dev/null + if ! $here/ltp/fsx $_param -P "$RESULT_DIR" $seq.$_n $FSX_AVOID &>/dev/null then echo " fsx ($_param) failed, $? - compare $seqres.$_n.{good,bad,fsxlog}" mv $out/$seq.$_n $seqres.$_n.full - mv $here/$seq.$_n.fsxlog $seqres.$_n.fsxlog + mv "$RESULT_DIR"/$seq.$_n.fsxlog $seqres.$_n.fsxlog od -xAx $seqres.$_n.full > $seqres.$_n.bad - od -xAx $here/$seq.$_n.fsxgood > $seqres.$_n.good - rm -f $here/$seq.$_n.fsxgood + od -xAx "$RESULT_DIR"/$seq.$_n.fsxgood > $seqres.$_n.good + rm -f "$RESULT_DIR"/$seq.$_n.fsxgood status=1 exit fi diff --git a/tests/generic/112 b/tests/generic/112 index 18d610ee..580c4cd5 100755 --- a/tests/generic/112 +++ b/tests/generic/112 @@ -55,12 +55,12 @@ _do_test() fi fi - # This cd and use of -P gets full debug on $here (not TEST_DEV) + # This cd and use of -P gets full debug on "$RESULT_DIR" (not TEST_DEV) cd $out - if ! $here/ltp/fsx $_param -P $here $FSX_AVOID $seq.$_n &>/dev/null + if ! $here/ltp/fsx $_param -P "$RESULT_DIR" $FSX_AVOID $seq.$_n &>/dev/null then echo " fsx ($_param) returned $? - see $seq.$_n.full" - mv $here/$seq.$_n.fsxlog $seqres.$_n.full + mv "$RESULT_DIR"/$seq.$_n.fsxlog $seqres.$_n.full status=1 exit fi