aboutsummaryrefslogtreecommitdiff
path: root/tests/sys/netinet/output.sh
diff options
context:
space:
mode:
authorAlexander V. Chernikov <melifaro@FreeBSD.org>2020-09-18 07:27:01 +0000
committerAlexander V. Chernikov <melifaro@FreeBSD.org>2020-09-18 07:27:01 +0000
commit4a8c6300e98120321904d7432dcc8c7807a7a4db (patch)
tree933c4dfed1b639fa5d37359c5aa963f72470a7d5 /tests/sys/netinet/output.sh
parent285e35e6f1b30bfab45774df019ab405590e5fbd (diff)
downloadsrc-4a8c6300e98120321904d7432dcc8c7807a7a4db.tar.gz
src-4a8c6300e98120321904d7432dcc8c7807a7a4db.zip
Use atf_fail instead of exit 1 to indicate mpath tests failure.
Notes
Notes: svn path=/head/; revision=365874
Diffstat (limited to 'tests/sys/netinet/output.sh')
-rwxr-xr-xtests/sys/netinet/output.sh17
1 files changed, 6 insertions, 11 deletions
diff --git a/tests/sys/netinet/output.sh b/tests/sys/netinet/output.sh
index 350a7a6f0db4..04a727c2cd1b 100755
--- a/tests/sys/netinet/output.sh
+++ b/tests/sys/netinet/output.sh
@@ -339,11 +339,10 @@ output_tcp_flowid_mpath_success_body()
pkt_0=`jexec ${jname}a netstat -Wf link -I ${epair0}a | head | awk '$1!~/^Name/{print$8}'`
pkt_1=`jexec ${jname}a netstat -Wf link -I ${epair1}a | head | awk '$1!~/^Name/{print$8}'`
if [ ${pkt_0} -le 10 ]; then
- echo "Balancing failure: 1: ${pkt_0} 2: ${pkt_1}"
- exit 1
+ atf_fail "Balancing failure: 1: ${pkt_0} 2: ${pkt_1}"
fi
if [ ${pkt_1} -le 10 ]; then
- echo "Balancing failure: 1: ${pkt_0} 2: ${pkt_1}"
+ atf_fail "Balancing failure: 1: ${pkt_0} 2: ${pkt_1}"
exit 1
fi
echo "TCP Balancing: 1: ${pkt_0} 2: ${pkt_1}"
@@ -468,12 +467,10 @@ output_udp_flowid_mpath_success_body()
pkt_0=`jexec ${jname}a netstat -Wf link -I ${epair0}a | head | awk '$1!~/^Name/{print$8}'`
pkt_1=`jexec ${jname}a netstat -Wf link -I ${epair1}a | head | awk '$1!~/^Name/{print$8}'`
if [ ${pkt_0} -le 10 ]; then
- echo "Balancing failure: 1: ${pkt_0} 2: ${pkt_1}"
- exit 1
+ atf_fail "Balancing failure: 1: ${pkt_0} 2: ${pkt_1}"
fi
if [ ${pkt_1} -le 10 ]; then
- echo "Balancing failure: 1: ${pkt_0} 2: ${pkt_1}"
- exit 1
+ atf_fail "Balancing failure: 1: ${pkt_0} 2: ${pkt_1}"
fi
echo "UDP BALANCING: 1: ${pkt_0} 2: ${pkt_1}"
}
@@ -561,12 +558,10 @@ output_raw_flowid_mpath_success_body()
jexec ${jname}a netstat -bWf link -I ${epair0}a
jexec ${jname}a netstat -bWf link -I ${epair1}a
if [ ${pkt_0} -le 10 ]; then
- echo "Balancing failure: 1: ${pkt_0} 2: ${pkt_1}"
- exit 1
+ atf_fail "Balancing failure: 1: ${pkt_0} 2: ${pkt_1}"
fi
if [ ${pkt_1} -le 10 ]; then
- echo "Balancing failure: 1: ${pkt_0} 2: ${pkt_1}"
- exit 1
+ atf_fail "Balancing failure: 1: ${pkt_0} 2: ${pkt_1}"
fi
echo "RAW BALANCING: 1: ${pkt_0} 2: ${pkt_1}"
}