If setting up the veth interfaces used for validation testing of socket based pktios fails (e.g. CONFIG_VETH missing from the kernel), report the test as skipped. Previously the test would be run anyway, resulting in a lot of errors which aren't particularly easy to interpret.
Signed-off-by: Stuart Haslam <[email protected]> --- platform/linux-generic/test/pktio/pktio_run | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/platform/linux-generic/test/pktio/pktio_run b/platform/linux-generic/test/pktio/pktio_run index 3f73556..7029ab2 100755 --- a/platform/linux-generic/test/pktio/pktio_run +++ b/platform/linux-generic/test/pktio/pktio_run @@ -87,6 +87,10 @@ run() # no interfaces specified, use default veth interfaces # setup by the pktio_env script setup_pktio_env clean + if [ $? != 0 ]; then + echo "Failed to setup test environment, skipping test." + exit $TEST_SKIPPED + fi export ODP_PKTIO_IF0=$IF0 export ODP_PKTIO_IF1=$IF1 fi -- 2.1.1 _______________________________________________ lng-odp mailing list [email protected] https://lists.linaro.org/mailman/listinfo/lng-odp
