diff mbox series

[API-NEXT,v2,2/2] test: l2fwd pass under coverage

Message ID 1497448806-6482-3-git-send-email-odpbot@yandex.ru
State Superseded
Headers show
Series [API-NEXT,v2,1/2] travis: add sudo for missing tests | expand

Commit Message

Github ODP bot June 14, 2017, 2 p.m. UTC
From: Maxim Uvarov <maxim.uvarov@linaro.org>


env variable TEST=coverage is set, use it to not fail
under gcov run which is really slow.

Signed-off-by: Maxim Uvarov <maxim.uvarov@linaro.org>

---
/** Email created from pull request 49 (muvarov:api-next_travis_fixes)
 ** https://github.com/Linaro/odp/pull/49
 ** Patch: https://github.com/Linaro/odp/pull/49.patch
 ** Base sha: 4f97e500a097928e308a415c32a88465adc5f5cc
 ** Merge commit sha: 3380e6fad8d778fc892b47ce2b0cbaafb29fa219
 **/
 test/common_plat/performance/odp_l2fwd_run.sh | 3 +++
 1 file changed, 3 insertions(+)
diff mbox series

Patch

diff --git a/test/common_plat/performance/odp_l2fwd_run.sh b/test/common_plat/performance/odp_l2fwd_run.sh
index dd42ede9..2c03fbcc 100755
--- a/test/common_plat/performance/odp_l2fwd_run.sh
+++ b/test/common_plat/performance/odp_l2fwd_run.sh
@@ -96,6 +96,9 @@  run_l2fwd()
 		ret=1
 	elif [ $ret -eq 0 ]; then
 		PASS_PPS=5000
+		if [ ${TEST} = "coverage" ]
+			PASS_PPS=10
+		fi
 		MAX_PPS=$(awk '/TEST RESULT/ {print $3}' $LOG)
 		if [ "$MAX_PPS" -lt "$PASS_PPS" ]; then
 			echo "FAIL: pps below threshold $MAX_PPS < $PASS_PPS"