FS/XFS testing framework
 help / color / mirror / Atom feed
From: Jan Kara <jack@suse.cz>
To: fstests@vger.kernel.org
Cc: Jan Kara <jack@suse.cz>
Subject: [PATCH] xfs/195: Use XFSDUMP_PROG instead of xfsdump directly
Date: Wed,  1 Oct 2014 17:27:18 +0200	[thread overview]
Message-ID: <1412177239-27241-1-git-send-email-jack@suse.cz> (raw)

Use appropriate environment variable (XFSDUMP_PROG) instead of hardcoding
'xfsdump' name. This also makes the test fail graciously when xfsdump
isn't installed.

Signed-off-by: Jan Kara <jack@suse.cz>
---
 tests/xfs/195 |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

diff --git a/tests/xfs/195 b/tests/xfs/195
index c7bc7b8..b86aedb 100755
--- a/tests/xfs/195
+++ b/tests/xfs/195
@@ -48,7 +48,7 @@ trap "_cleanup; exit \$status" 0 1 2 3 15
 #
 _do_dump()
 {
-	xfsdump -l 0 -s d -F  \
+	$XFSDUMP_PROG -l 0 -s d -F  \
 		-L prova -M prova \
 		-f $TEST_DIR/dumpfile -e -v excluded_files=debug $TEST_DIR \
 		| grep "ino $inum" \
@@ -58,6 +58,7 @@ _do_dump()
 # get standard environment, filters and checks
 . ./common/rc
 . ./common/filter
+. ./common/dump
 
 # real QA test starts here
 _supported_fs xfs
-- 
1.6.0.2


             reply	other threads:[~2014-10-01 15:27 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-10-01 15:27 Jan Kara [this message]
2014-10-01 15:27 ` [PATCH] xfs/287: Make test fail graciously when xfsdump isn't installed Jan Kara
2014-10-14 11:58 ` [PATCH] xfs/195: Use XFSDUMP_PROG instead of xfsdump directly Dave Chinner
2014-10-14 12:12   ` Dave Chinner
2014-10-14 12:15     ` Dave Chinner
2014-10-16 10:38       ` Jan Kara

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1412177239-27241-1-git-send-email-jack@suse.cz \
    --to=jack@suse.cz \
    --cc=fstests@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox