Skip to content

Commit

Permalink
microcloud/test/includes: Add reuse-cluster input to interactive test…
Browse files Browse the repository at this point in the history
… helper

Signed-off-by: Max Asnaashari <[email protected]>
  • Loading branch information
masnax committed Apr 19, 2024
1 parent c2875e2 commit e388d20
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion microcloud/test/includes/microcloud.sh
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# unset_interactive_vars: Unsets all variables related to the test console.
unset_interactive_vars() {
unset LOOKUP_IFACE LIMIT_SUBNET SKIP_SERVICE EXPECT_PEERS \
unset LOOKUP_IFACE LIMIT_SUBNET SKIP_SERVICE EXPECT_PEERS REUSE_EXISTING REUSE_EXISTING_COUNT \
SETUP_ZFS ZFS_FILTER ZFS_WIPE \
SETUP_CEPH CEPH_WARNING CEPH_FILTER CEPH_WIPE SETUP_CEPHFS \
SETUP_OVN OVN_WARNING OVN_FILTER IPV4_SUBNET IPV4_START IPV4_END DNS_ADDRESSES IPV6_SUBNET
Expand Down Expand Up @@ -44,6 +44,16 @@ select-all # select all the sys
EOF
)

if [ -n "${REUSE_EXISTING}" ]; then
for i in $(seq 1 "${REUSE_EXISTING_COUNT}") ; do
setup=$(cat << EOF
${setup}
${REUSE_EXISTING}
EOF
)
done
fi

if [ -n "${SETUP_ZFS}" ]; then
setup=$(cat << EOF
${setup}
Expand Down

0 comments on commit e388d20

Please sign in to comment.