generic: fix missed FSX_AVOID parameter
diff mbox series

Message ID 20190702084507.14050-1-zlang@redhat.com
State New
Headers show
Series
  • generic: fix missed FSX_AVOID parameter
Related show

Commit Message

Zorro Lang July 2, 2019, 8:45 a.m. UTC
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(-)

Patch
diff mbox series

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