]> www.infradead.org Git - users/sagi/blktests.git/commitdiff
Do not leak the test() arguments into _init_scsi_debug()
authorBart Van Assche <bvanassche@acm.org>
Wed, 25 Jan 2023 17:51:01 +0000 (09:51 -0800)
committerBart Van Assche <bvanassche@acm.org>
Wed, 25 Jan 2023 19:14:50 +0000 (11:14 -0800)
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 <bvanassche@acm.org>
tests/block/002
tests/scsi/007

index 15b47a6dae3f36dc3b27e47e4721c31a7d7abf49..05d00d2e27b46871a9f836e4254a44fa5967542a 100755 (executable)
@@ -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
 
index 002bf4af3dd0b81561c9e8b1ede4a811f4b63869..e7088a124486f689af66571706079964ae5408f8 100755 (executable)
@@ -28,7 +28,7 @@ test() {
 
        echo "Running ${TEST_NAME}"
 
-       if ! _init_scsi_debug; then
+       if ! _init_scsi_debug delay=0; then
                return 1
        fi