* [PATCH] generic: fix missed FSX_AVOID parameter
@ 2019-07-02 8:45 Zorro Lang
0 siblings, 0 replies; only message in thread
From: Zorro Lang @ 2019-07-02 8:45 UTC (permalink / raw)
To: fstests
When I try to avoid copy_file_range operation from fsx, I set
FSX_AVOID="-E", but it doesn't work on generic/455, and generic/127
doesn't show $FSX_AVOID when it fails.
Signed-off-by: Zorro Lang <zlang@redhat.com>
---
tests/generic/127 | 8 ++++----
tests/generic/455 | 2 +-
2 files changed, 5 insertions(+), 5 deletions(-)
diff --git a/tests/generic/127 b/tests/generic/127
index dedd8bbf..222e0315 100755
--- a/tests/generic/127
+++ b/tests/generic/127
@@ -37,7 +37,7 @@ _fsx_lite_nommap()
dd if=/dev/zero of=$TEST_DIR/fsx_lite_nommap bs=${FSX_FILE_SIZE} count=1 > /dev/null 2>&1
if ! ltp/fsx $FSX_ARGS -L -R -W $FSX_AVOID $TEST_DIR/fsx_lite_nommap > $tmp.output 2>&1
then
- echo "ltp/fsx $FSX_ARGS -L -R -W $TEST_DIR/fsx_lite_nommap"
+ echo "ltp/fsx $FSX_ARGS -L -R -W $FSX_AVOID $TEST_DIR/fsx_lite_nommap"
cat $tmp.output
return 1
fi
@@ -51,7 +51,7 @@ _fsx_lite_mmap()
dd if=/dev/zero of=$TEST_DIR/fsx_lite_mmap bs=${FSX_FILE_SIZE} count=1 > /dev/null 2>&1
if ! ltp/fsx $FSX_ARGS -L $FSX_AVOID $TEST_DIR/fsx_lite_mmap > $tmp.output 2>&1
then
- echo "ltp/fsx $FSX_ARGS -L fsx_lite_mmap"
+ echo "ltp/fsx $FSX_ARGS -L $FSX_AVOID $TEST_DIR/fsx_lite_mmap"
cat $tmp.output
return 1
fi
@@ -64,7 +64,7 @@ _fsx_std_nommap()
echo "=== FSX Standard Mode, No Memory Mapping ==="
if ! ltp/fsx $FSX_ARGS -R -W $FSX_AVOID $TEST_DIR/fsx_std_nommap > $tmp.output 2>&1
then
- echo "ltp/fsx $FSX_ARGS -R -W fsx_std_nommap"
+ echo "ltp/fsx $FSX_ARGS -R -W $FSX_AVOID $TEST_DIR/fsx_std_nommap"
cat $tmp.output
return 1
fi
@@ -77,7 +77,7 @@ _fsx_std_mmap()
echo "=== FSX Standard Mode, Memory Mapping ==="
if ! ltp/fsx $FSX_ARGS $FSX_AVOID $TEST_DIR/fsx_std_mmap > $tmp.output 2>&1
then
- echo "ltp/fsx $FSX_ARGS fsx_std_mmap"
+ echo "ltp/fsx $FSX_ARGS $FSX_AVOID $TEST_DIR/fsx_std_mmap"
cat $tmp.output
return 1
fi
diff --git a/tests/generic/455 b/tests/generic/455
index 05621220..404c603b 100755
--- a/tests/generic/455
+++ b/tests/generic/455
@@ -66,7 +66,7 @@ _log_writes_mount -o discard
NUM_FILES=4
NUM_OPS=200
-FSX_OPTS="-N $NUM_OPS -d -P $SANITY_DIR -i $LOGWRITES_DMDEV"
+FSX_OPTS="-N $NUM_OPS -d -P $SANITY_DIR -i $LOGWRITES_DMDEV $FSX_AVOID"
# Set random seeds for fsx runs (0 for timestamp + pid)
# When test failure is detected, check the seed values printed
# by fsx processes to $seqres.full and set them in this array
--
2.17.2
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2019-07-02 8:45 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2019-07-02 8:45 [PATCH] generic: fix missed FSX_AVOID parameter Zorro Lang
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox