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'):
verbose = True
print("Arguments used to call test: %s" % args)
- subprocess.check_call(args)
+ subprocess.check_call(map(os.path.expanduser, args))
file = os.path.join(settings.getValue("TRAFFICGEN_STC_RESULTS_DIR"),
settings.getValue("TRAFFICGEN_STC_CSV_RESULTS_FILE_PREFIX") + ".csv")
logger.debug('%s%s', CMD_PREFIX, ' '.join(cmd))
try:
- proc = subprocess.Popen(
- cmd, stdout=subprocess.PIPE, stderr=subprocess.PIPE, bufsize=0)
+ proc = subprocess.Popen(map(os.path.expanduser, cmd),
+ stdout=subprocess.PIPE,
+ stderr=subprocess.PIPE, bufsize=0)
while True:
reads = [proc.stdout.fileno(), proc.stderr.fileno()]
logger.info(msg)
logger.debug('%s%s', CMD_PREFIX, ' '.join(cmd))
- proc = subprocess.Popen(cmd, stdout=_get_stdout(), bufsize=0)
+ proc = subprocess.Popen(map(os.path.expanduser, cmd), stdout=_get_stdout(), bufsize=0)
return proc.pid