Fix the assignment / usage of OC0 environmental variable so
now it is allowed / handled.
Showing
2 changed files
with
3 additions
and
3 deletions
... | @@ -67,14 +67,14 @@ function cell { | ... | @@ -67,14 +67,14 @@ function cell { |
67 | [ ! -f $ONOS_ROOT/tools/test/cells/$1 ] && \ | 67 | [ ! -f $ONOS_ROOT/tools/test/cells/$1 ] && \ |
68 | echo "No such cell: $1" >&2 && return 1 | 68 | echo "No such cell: $1" >&2 && return 1 |
69 | unset ONOS_CELL ONOS_NIC ONOS_FEATURES | 69 | unset ONOS_CELL ONOS_NIC ONOS_FEATURES |
70 | - unset OC1 OC2 OC3 OC4 OC5 OC6 OC7 OC8 OC9 OCN OCI | 70 | + unset OC0 OC1 OC2 OC3 OC4 OC5 OC6 OC7 OC8 OC9 OCN OCI |
71 | export ONOS_CELL=$1 | 71 | export ONOS_CELL=$1 |
72 | . $ONOS_ROOT/tools/test/cells/$1 | 72 | . $ONOS_ROOT/tools/test/cells/$1 |
73 | cell | 73 | cell |
74 | else | 74 | else |
75 | env | egrep "ONOS_CELL" | 75 | env | egrep "ONOS_CELL" |
76 | env | egrep "OCI" | 76 | env | egrep "OCI" |
77 | - env | egrep "OC[1-9]+" | sort | 77 | + env | egrep "OC[0-9]+" | sort |
78 | env | egrep "OCN" | 78 | env | egrep "OCN" |
79 | env | egrep "ONOS_" | egrep -v 'ONOS_ROOT|ONOS_CELL' | 79 | env | egrep "ONOS_" | egrep -v 'ONOS_ROOT|ONOS_CELL' |
80 | fi | 80 | fi | ... | ... |
... | @@ -42,7 +42,7 @@ fi | ... | @@ -42,7 +42,7 @@ fi |
42 | 42 | ||
43 | echo "ONOS_CELL=${ONOS_CELL}" | 43 | echo "ONOS_CELL=${ONOS_CELL}" |
44 | echo "ONOS_NIC=${ONOS_NIC}" | 44 | echo "ONOS_NIC=${ONOS_NIC}" |
45 | -for n in {1..9}; do | 45 | +for n in {0..9}; do |
46 | ocn="OC${n}" | 46 | ocn="OC${n}" |
47 | if [ -n "${!ocn}" ]; then | 47 | if [ -n "${!ocn}" ]; then |
48 | echo "$ocn=${!ocn}" | 48 | echo "$ocn=${!ocn}" | ... | ... |
-
Please register or login to post a comment