summaryrefslogtreecommitdiffstats
path: root/tests/driver_test.py
diff options
context:
space:
mode:
authorYujun Zhang <zhang.yujunz@zte.com.cn>2016-11-07 07:39:09 +0000
committerGerrit Code Review <gerrit@opnfv.org>2016-11-07 07:39:09 +0000
commitc7761e0760aaacb801478308b6774dccb33cbf2e (patch)
treed6f0580e0713780e5bfbc26314ccbd70ec9c3454 /tests/driver_test.py
parent962e1283835838a127767087a09b946327bd23a6 (diff)
parent71d715b04b2ded20f81bd5c5083fcb2fbce06c1f (diff)
Merge "Remove results directory out of repos"
Diffstat (limited to 'tests/driver_test.py')
-rw-r--r--tests/driver_test.py9
1 files changed, 6 insertions, 3 deletions
diff --git a/tests/driver_test.py b/tests/driver_test.py
index bc705dad..41a7dee4 100644
--- a/tests/driver_test.py
+++ b/tests/driver_test.py
@@ -1,6 +1,9 @@
import pytest
import mock
from func.driver import Driver
+from os.path import expanduser
+
+HOME_DIR = expanduser('~')
class TestClass:
@@ -15,7 +18,7 @@ class TestClass:
{'http_proxy': 'http://10.20.0.1:8118',
'https_proxy': 'http://10.20.0.1:8118',
'no_proxy': 'localhost,127.0.0.1,10.20.*,192.168.*'}],
- [{'Dest_dir': 'results',
+ [{'Dest_dir': HOME_DIR + '/qtip/results',
'ip1': '',
'ip2': '',
'installer': 'fuel',
@@ -37,7 +40,7 @@ class TestClass:
[('duration', 20), ('protocol', 'tcp'), ('bandwidthGbps', 0)],
[('1-server', '10.10.17.4'), ('2-host', '10.10.17.5')],
{}],
- [{'Dest_dir': 'results',
+ [{'Dest_dir': HOME_DIR + '/qtip/results',
'ip1': '10.20.0.13',
'ip2': '',
'installer': 'joid',
@@ -49,7 +52,7 @@ class TestClass:
'protocol': 'tcp',
'bandwidthGbps': 0,
"role": "1-server"},
- {'Dest_dir': 'results',
+ {'Dest_dir': HOME_DIR + '/qtip/results',
'ip1': '10.20.0.13',
'ip2': '',
'installer': 'joid',