[dpdk-dev,v4,3/4] app/test: enhance freebsd support in autotest config
Checks
Commit Message
Update test command line with no additional arguments,
as FreeBSD doesn't support socket-mem, file-prefix options
Signed-off-by: Jananee Parthasarathy <jananeex.m.parthasarathy@intel.com>
Reviewed-by: Reshma Pattan <reshma.pattan@intel.com>
Reviewed-by: Anatoly Burakov <anatoly.burakov@intel.com>
---
test/test/autotest_runner.py | 8 +++++++-
1 file changed, 7 insertions(+), 1 deletion(-)
@@ -1,5 +1,5 @@
# SPDX-License-Identifier: BSD-3-Clause
-# Copyright(c) 2010-2014 Intel Corporation
+# Copyright(c) 2010-2018 Intel Corporation
# The main logic behind running autotests in parallel
@@ -201,6 +201,12 @@ def __init__(self, cmdline, target, blacklist, whitelist):
# set up cmdline string
def __get_cmdline(self, test):
cmdline = self.cmdline
+ os_name = sys.platform
+
+ # test command line need not be modified for FreeBSD
+ # as socket-mem, file-prefix is not supported
+ if os_name.startswith('freebsd') :
+ return cmdline
# append memory limitations for each test
# otherwise tests won't run in parallel