Skip to content

Commit a997ab0

Browse files
committed
common/rc, dm/003, nvme/065: move TO_SKIP to common/rc
TO_SKIP is defined as readonly at two places in dm/003 and nvme/065. When these two test cases are run at once, bash complains that the readonly value is assigned twice. To avoid the error, do not declare the value as readonly. Also, move the declarations of TO_SKIP to common/rc to avoid the duplicated declarations. Reported-by: Yi Zhang <[email protected]> Link: #204 Signed-off-by: Shin'ichiro Kawasaki <[email protected]>
1 parent fe9398a commit a997ab0

3 files changed

Lines changed: 1 addition & 4 deletions

File tree

common/rc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ shopt -s extglob
1414

1515
declare IO_URING_DISABLED
1616
declare -a SYSTEMCTL_UNITS_TO_STOP
17+
export TO_SKIP=255
1718

1819
# If a test runs multiple "subtests", then each subtest should typically run
1920
# for TIMEOUT / number of subtests.

tests/dm/003

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,6 @@ requires() {
1515
_have_scsi_debug
1616
}
1717

18-
readonly TO_SKIP=255
19-
2018
setup_test_device() {
2119
local dev blk_sz dpath
2220

tests/nvme/065

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,6 @@ requires() {
2020
_require_nvme_trtype_is_loop
2121
}
2222

23-
readonly TO_SKIP=255
24-
2523
setup_test_device() {
2624
local port
2725

0 commit comments

Comments
 (0)