Project

General

Profile

Actions

Bug #6580

closed

zfs-tests use undefined variable WRAPPER

Added by Yuri Pankov over 5 years ago. Updated over 5 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
tests
Start date:
2016-01-26
Due date:
% Done:

100%

Estimated time:
Difficulty:
Bite-size
Tags:
Gerrit CR:

Description

Several test cases in zfs-tests use the variable WRAPPER, which doesn't seem to be defined anywhere:

usr/src/test/zfs-tests/tests/functional/utils_test/utils_test_007_pos.ksh:elif [[ $WRAPPER == "smi" ]]; then
usr/src/test/zfs-tests/tests/functional/cache/cache.kshlib: if [[ $WRAPPER == *"smi"* ]]; then
usr/src/test/zfs-tests/tests/functional/slog/slog.kshlib:   if [[ $WRAPPER == *"smi"* ]]; then
usr/src/test/zfs-tests/tests/functional/inuse/inuse_007_pos.ksh:            if [[ $WRAPPER == *"smi"* && \
usr/src/test/zfs-tests/tests/functional/inuse/inuse_003_pos.ksh:    if [[ $WRAPPER == *"smi"* && $disk == ${saved_disk} ]]; then
usr/src/test/zfs-tests/tests/functional/inuse/inuse_006_pos.ksh:            if [[ $WRAPPER == *"smi"* && \
usr/src/test/zfs-tests/tests/functional/inuse/inuse_008_pos.ksh:    if [[ $WRAPPER == *"smi"* && \
usr/src/test/zfs-tests/tests/functional/inuse/inuse_009_pos.ksh:            if [[ $WRAPPER == *"smi"* && \
usr/src/test/zfs-tests/tests/functional/inuse/inuse_005_pos.ksh:            if [[ $WRAPPER == *"smi"* && \
usr/src/test/zfs-tests/tests/functional/inuse/inuse_001_pos.ksh:if [[ $WRAPPER == *"smi"* ]]; then
usr/src/test/zfs-tests/tests/functional/grow_replicas/grow_replicas.cfg:if [[ $WRAPPER != *"smi"* ]]; then

This looks like leftovers from STC conversion. If that's not the case and it's actually usable, we need to document it in the README.

Actions

Also available in: Atom PDF