aboutsummaryrefslogtreecommitdiffstats
path: root/functest/opnfv_tests/openstack/vping/vping_ssh.py
diff options
context:
space:
mode:
authorJose Lausuch <jose.lausuch@ericsson.com>2017-06-21 08:33:02 +0000
committerGerrit Code Review <gerrit@opnfv.org>2017-06-21 08:33:02 +0000
commit51899de7927bbf6be76639508ae2970046add625 (patch)
treea2cc98e1a98b012e81d82ac8653932c00ea8ba3e /functest/opnfv_tests/openstack/vping/vping_ssh.py
parente7ab53553d719b0fb35b4a74cd0bbc9572c7a48d (diff)
parent997a42438f2253aa9fe640c1cbdd8ea461901948 (diff)
Merge "Remove all references to /home/opnfv/repos/functest"
Diffstat (limited to 'functest/opnfv_tests/openstack/vping/vping_ssh.py')
-rwxr-xr-xfunctest/opnfv_tests/openstack/vping/vping_ssh.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/functest/opnfv_tests/openstack/vping/vping_ssh.py b/functest/opnfv_tests/openstack/vping/vping_ssh.py
index 6ac0d676..1f663307 100755
--- a/functest/opnfv_tests/openstack/vping/vping_ssh.py
+++ b/functest/opnfv_tests/openstack/vping/vping_ssh.py
@@ -8,7 +8,7 @@
# http://www.apache.org/licenses/LICENSE-2.0
import argparse
-import os
+import pkg_resources
from scp import SCPClient
import sys
import time
@@ -156,8 +156,8 @@ class VPingSSH(vping_base.VPingBase):
"""
self.logger.info("Trying to transfer ping.sh")
scp = SCPClient(ssh.get_transport())
- local_path = self.functest_repo + "/" + self.repo
- ping_script = os.path.join(local_path, "ping.sh")
+ ping_script = pkg_resources.resource_filename(
+ 'functest', 'opnfv_tests/openstack/vping/ping.sh')
try:
scp.put(ping_script, "~/")
except: