From ad35451e9bb63a551b0b1ff517706b969653f594 Mon Sep 17 00:00:00 2001 From: Martin Klozik Date: Wed, 9 Dec 2015 14:32:06 +0000 Subject: bugfix: Support paths with user's home shortcut VSPERF will explicitly expand any '~' to the absolute path to the user's home directory before call of subsystem.Popen method. Only calls, which process configuration values are modified. Change-Id: Ibd9399ae84bf4698c86bf8eff97ca6ce785fb3fb JIRA: VSPERF-45 Signed-off-by: Martin Klozik Reviewed-by: Maryam Tahhan Reviewed-by: Brian Castelli Reviewed-by: Al Morton --- src/dpdk/dpdk.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/dpdk') diff --git a/src/dpdk/dpdk.py b/src/dpdk/dpdk.py index 85d0001e..3f5333a0 100644 --- a/src/dpdk/dpdk.py +++ b/src/dpdk/dpdk.py @@ -296,7 +296,7 @@ def _unbind_nics_get_driver(): after unbinding them from DPDK. """ _driver_list = [] - _output = subprocess.check_output([RTE_PCI_TOOL, '--status']) + _output = subprocess.check_output([os.path.expanduser(RTE_PCI_TOOL), '--status']) _my_encoding = locale.getdefaultlocale()[1] for line in _output.decode(_my_encoding).split('\n'): for nic in settings.getValue('WHITELIST_NICS'): -- cgit 1.2.3-korg