test: fix bats dealing with std* streams
Signed-off-by: Antonio Murdaca <runcom@redhat.com>
This commit is contained in:
parent
49f3f2ac7f
commit
7985f7ad81
1 changed files with 4 additions and 3 deletions
|
@ -292,9 +292,10 @@ function check_pod_cidr() {
|
||||||
fullnetns=`ocic pod status --id $1 | grep namespace | cut -d ' ' -f 3`
|
fullnetns=`ocic pod status --id $1 | grep namespace | cut -d ' ' -f 3`
|
||||||
netns=`basename $fullnetns`
|
netns=`basename $fullnetns`
|
||||||
|
|
||||||
ip netns exec $netns ip addr show dev eth0 scope global | grep $POD_CIDR_MASK
|
run ip netns exec $netns ip addr show dev eth0 scope global 2>&1
|
||||||
|
echo "$output"
|
||||||
echo $?
|
[ "$status" -eq 0 ]
|
||||||
|
[[ "$output" =~ $POD_CIDR_MASK ]]
|
||||||
}
|
}
|
||||||
|
|
||||||
function parse_pod_ip() {
|
function parse_pod_ip() {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue