From: Bart Van Assche Date: Wed, 25 Jan 2023 17:51:01 +0000 (-0800) Subject: Do not leak the test() arguments into _init_scsi_debug() X-Git-Url: https://www.infradead.org/git/?a=commitdiff_plain;h=852996fea4f1;p=users%2Fsagi%2Fblktests.git Do not leak the test() arguments into _init_scsi_debug() Bash does not support not passing the test() arguments to _init_scsi_debug(). Hence pass a single argument to _init_scsi_debug(). Signed-off-by: Bart Van Assche --- diff --git a/tests/block/002 b/tests/block/002 index 15b47a6..05d00d2 100755 --- a/tests/block/002 +++ b/tests/block/002 @@ -18,7 +18,7 @@ requires() { test() { echo "Running ${TEST_NAME}" - if ! _init_scsi_debug; then + if ! _init_scsi_debug delay=0; then return 1 fi diff --git a/tests/scsi/007 b/tests/scsi/007 index 002bf4a..e7088a1 100755 --- a/tests/scsi/007 +++ b/tests/scsi/007 @@ -28,7 +28,7 @@ test() { echo "Running ${TEST_NAME}" - if ! _init_scsi_debug; then + if ! _init_scsi_debug delay=0; then return 1 fi