aboutsummaryrefslogtreecommitdiffstats
path: root/testcases
diff options
context:
space:
mode:
authorMartin Klozik <martinx.klozik@intel.com>2016-04-13 14:26:07 +0100
committerMaryam Tahhan <maryam.tahhan@intel.com>2016-04-19 13:48:47 +0000
commitcdba631d32461d5f5916b369a9007a63891c55a6 (patch)
tree61024d7e1724cd1e0a04a726ec1cdc1bc12a3ce1 /testcases
parentf87c2216b83ba8bdde369f4d5d5cee6fdb3afeae (diff)
vm: use the same testpmd sources inside VM
Always copy testpmd sources from the directory with vHost User version of DPDK. This will avoid possible issues with missing dependencies in some VM images. It will also ensure, that testpmd inside VM is agnostic to chosen vHost method. Change-Id: I0496cc846eff3f7d4c1aef0a9c825545a4c3c818 JIRA: VSPERF-283 Signed-off-by: Martin Klozik <martinx.klozik@intel.com> Reviewed-by: Maryam Tahhan <maryam.tahhan@intel.com> Reviewed-by: Al Morton <acmorton@att.com> Reviewed-by: Christian Trautman <ctrautma@redhat.com> Reviewed-by: Brian Castelli <brian.castelli@spirent.com>
Diffstat (limited to 'testcases')
-rw-r--r--testcases/testcase.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/testcases/testcase.py b/testcases/testcase.py
index ff1247fc..7c935792 100644
--- a/testcases/testcase.py
+++ b/testcases/testcase.py
@@ -309,8 +309,10 @@ class TestCase(object):
# copy sources into shared dir only if neccessary
if 'testpmd' in self.guest_loopback or 'l2fwd' in self.guest_loopback:
try:
+ # always use DPDK vhost user version inside VM, so results are not
+ # affected by different testpmd behavior inside VM
tasks.run_task(['rsync', '-a', '-r', '-l', r'--exclude="\.git"',
- os.path.join(S.getValue('RTE_SDK'), ''),
+ os.path.join(S.getValue('RTE_SDK_USER'), ''),
os.path.join(guest_dir, 'DPDK')],
self._logger,
'Copying DPDK to shared directory...',