xfs/195: Use XFSDUMP_PROG instead of xfsdump directly
PATCH 1/1 xfs/195: Use XFSDUMP_PROG instead of xfsdump directly
Use appropriate environment variable (XFSDUMP_PROG) instead of hardcoding 'xfsdump' name. This also makes the test fail graciously when xfsdump isn't installed.
--- tests/xfs/195 | 3 ++- 1 files changed, 2 insertions(+), 1 deletions(-)
tests/xfs/195 +2 -1
@@ -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
Signature · 1 line
1.6.0.2
PATCH 1/1 xfs/287: Make test fail graciously when xfsdump isn't installed
Include common/dump into xfs/287 so that the test fails graciously when xfsdump isn't installed.
--- tests/xfs/287 | 1 + 1 files changed, 1 insertions(+), 0 deletions(-)
tests/xfs/287 +1 -0
@@ -35,6 +35,7 @@ rm -f $seqres.full # get standard environment, filters and checks . ./common/rc . ./common/quota +. ./common/dump _cleanup() {
Signature · 1 line
1.6.0.2
Quoted 23 lines · Jan Kara
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 <[email protected]>--- tests/xfs/195 | 3 ++- 1 files changed, 2 insertions(+), 1 deletions(-)tests/xfs/195 +1
-1@@ -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" \
tests/xfs/195 _do_dump() · line 61
Quoted 4 lines
tests/xfs/195 +1
-0@@ -58,6 +58,7 @@ _do_dump() # get standard environment, filters and checks . ./common/rc . ./common/filter +. ./common/dump
This causes the test to fail, because _do_dump() is defined in common/dump as well. I'll fix the conflict...
Cheers,
Dave.
Quoted 11 lines
tests/xfs/195 +0
-0# real QA test starts here _supported_fs xfsSignature · 6 lines
1.6.0.2 -- To unsubscribe from this list: send the line "unsubscribe fstests" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html
Signature · 2 lines
Dave Chinner [email protected]
Quoted 23 lines · Dave Chinner
Quoted 22 lines · Jan Kara
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 <[email protected]>--- tests/xfs/195 | 3 ++- 1 files changed, 2 insertions(+), 1 deletions(-)tests/xfs/195 +1
-1@@ -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" \
Quoted 8 lines
tests/xfs/195 _do_dump() · line 61
Quoted 5 lines
tests/xfs/195 +1
-0@@ -58,6 +58,7 @@ _do_dump() # get standard environment, filters and checks . ./common/rc . ./common/filter +. ./common/dumpThis causes the test to fail, because
_do_dump()is defined in common/dump as well. I'll fix the conflict...
Actually, this has problems with duplicate _cleanup functions too, so It' would just be better to check for xfsdump being defined directly rather than including common/dump....
Cheers,
Dave.
Signature · 2 lines
Dave Chinner [email protected]
Quoted 33 lines · Dave Chinner
Quoted 23 lines · Dave Chinner
Quoted 22 lines · Jan Kara
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 <[email protected]>--- tests/xfs/195 | 3 ++- 1 files changed, 2 insertions(+), 1 deletions(-)tests/xfs/195 +1
-1@@ -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" \Quoted 8 lines
tests/xfs/195 _do_dump() · line 61
Quoted 5 lines
tests/xfs/195 +1
-0@@ -58,6 +58,7 @@ _do_dump() # get standard environment, filters and checks . ./common/rc . ./common/filter +. ./common/dumpThis causes the test to fail, because
_do_dump()is defined in common/dump as well. I'll fix the conflict...
Quoted 3 lines
Actually, this has problems with duplicate
_cleanupfunctions too, so It' would just be better to check for xfsdump being defined directly rather than including common/dump....
I've dropped this for now. Can you rework it, Jan? Maybe best to use _require_command or something like that as common/dump implies certain specific usage patterns and functions are used, which this test doesn't follow...
Cheers,
Dave.
Signature · 2 lines
Dave Chinner [email protected]
Quoted 34 lines · Dave Chinner
Quoted 33 lines · Dave Chinner
Quoted 31 lines · Dave Chinner
Quoted 23 lines · Jan Kara
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 <[email protected]>--- tests/xfs/195 | 3 ++- 1 files changed, 2 insertions(+), 1 deletions(-)tests/xfs/195 +1
-1@@ -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" \tests/xfs/195 _do_dump() · line 61
Quoted 4 lines
tests/xfs/195 +1
-0@@ -58,6 +58,7 @@ _do_dump() # get standard environment, filters and checks . ./common/rc . ./common/filter +. ./common/dumpThis causes the test to fail, because
_do_dump()is defined in common/dump as well. I'll fix the conflict...
Quoted 8 lines
Quoted 3 lines
Actually, this has problems with duplicate
_cleanupfunctions too, so It' would just be better to check for xfsdump being defined directly rather than including common/dump....I've dropped this for now. Can you rework it, Jan? Maybe best to use
_require_commandor something like that as common/dump implies certain specific usage patterns and functions are used, which this test doesn't follow...
OK, I'll try to fix it differently. I just wonder why things work for me
here...
Honza
Signature · 2 lines
Jan Kara <[email protected]> SUSE Labs, CR