aboutsummaryrefslogtreecommitdiffstats
path: root/yardstick/benchmark/scenarios/networking/vsperf.py
diff options
context:
space:
mode:
authorRex Lee <limingjiang@huawei.com>2016-12-12 07:13:30 +0000
committerGerrit Code Review <gerrit@opnfv.org>2016-12-12 07:13:30 +0000
commite19dacdb57d0b3520b85d60607813f3c6548ff67 (patch)
tree68a1896a24c68350180f9c1bb28c7b95cdb08a37 /yardstick/benchmark/scenarios/networking/vsperf.py
parent4a9465801b48c1042656d860b54621f30c6c1423 (diff)
parent0576844bb2cdae6b479504ec1532a5dc56c0b633 (diff)
Merge "use context manager for stdin files and use _put_file_shell"
Diffstat (limited to 'yardstick/benchmark/scenarios/networking/vsperf.py')
-rw-r--r--yardstick/benchmark/scenarios/networking/vsperf.py6
1 files changed, 2 insertions, 4 deletions
diff --git a/yardstick/benchmark/scenarios/networking/vsperf.py b/yardstick/benchmark/scenarios/networking/vsperf.py
index 39912a95a..4f4ef21eb 100644
--- a/yardstick/benchmark/scenarios/networking/vsperf.py
+++ b/yardstick/benchmark/scenarios/networking/vsperf.py
@@ -133,10 +133,8 @@ class Vsperf(base.Scenario):
# traffic generation could last long
self.client.wait(timeout=1800)
- # copy script to host if needed
- if self.vsperf_conf:
- self.client.run("cat > ~/vsperf.conf",
- stdin=open(self.vsperf_conf, "rb"))
+ # copy script to host
+ self.client._put_file_shell(self.vsperf_conf, '~/vsperf.conf')
# execute external setup script
if self.setup_script: