File tree Expand file tree Collapse file tree 3 files changed +4
-8
lines changed
tests/zfs-tests/tests/functional/cli_root Expand file tree Collapse file tree 3 files changed +4
-8
lines changed Original file line number Diff line number Diff line change 25
25
#
26
26
27
27
. $STF_SUITE /include/libtest.shlib
28
- . $STF_SUITE /tests/functional/cli_root/zpool_add/zpool_add.kshlib
29
28
30
- typeset TMPFILE_PREFIX=" $TEST_BASE_DIR /zpool_add_dryrun_output"
31
29
typeset STR_DRYRUN=" would update '$TESTPOOL ' to the following configuration:"
32
30
typeset VDEV_PREFIX=" $TEST_BASE_DIR /filedev"
33
31
@@ -136,7 +134,7 @@ verify_runnable "global"
136
134
function cleanup
137
135
{
138
136
destroy_pool " $TESTPOOL "
139
- rm -f " $TMPFILE_PREFIX " * " $ VDEV_PREFIX" *
137
+ rm -f " $VDEV_PREFIX " *
140
138
}
141
139
142
140
log_assert " 'zpool add -n <pool> <vdev> ...' can display the configuration"
Original file line number Diff line number Diff line change 25
25
#
26
26
27
27
. $STF_SUITE /include/libtest.shlib
28
- . $STF_SUITE /tests/functional/cli_root/zpool_create/zpool_create.shlib
29
28
30
- typeset TMPFILE_PREFIX=" $TEST_BASE_DIR /zpool_create_dryrun_output"
31
29
typeset STR_DRYRUN=" would create '$TESTPOOL ' with the following layout:"
32
30
typeset VDEV_PREFIX=" $TEST_BASE_DIR /filedev"
33
31
@@ -36,7 +34,7 @@ typeset VDEV_PREFIX="$TEST_BASE_DIR/filedev"
36
34
# 'zpool create -n <pool> <vdev> ...' can display the correct configuration
37
35
#
38
36
# STRATEGY:
39
- # 1. Create a storage pool
37
+ # 1. Create -n a storage pool and verify the output is as expected.
40
38
#
41
39
42
40
typeset -a dev=(
@@ -112,13 +110,12 @@ verify_runnable "global"
112
110
113
111
function cleanup
114
112
{
115
- rm -f " $TMPFILE_PREFIX " * " $ VDEV_PREFIX" *
113
+ rm -f " $VDEV_PREFIX " *
116
114
}
117
115
118
116
log_assert " 'zpool add -n <pool> <vdev> ...' can display the configuration"
119
117
120
118
log_onexit cleanup
121
- typeset disk1=$( create_blockfile $FILESIZE )
122
119
123
120
# Create needed file vdevs.
124
121
for (( i= 0 ; i < ${# dev[@]} ; i+= 1 )) ; do
Original file line number Diff line number Diff line change @@ -118,6 +118,7 @@ verify_runnable "global"
118
118
function cleanup
119
119
{
120
120
destroy_pool " $TESTPOOL "
121
+ rm -f " $VDEV_PREFIX " *
121
122
}
122
123
123
124
log_assert \
You can’t perform that action at this time.
0 commit comments