aboutsummaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorwu.zhihui <wu.zhihui1@zte.com.cn>2016-11-05 16:12:00 +0800
committerwu.zhihui <wu.zhihui1@zte.com.cn>2016-11-05 17:11:12 +0800
commit71d715b04b2ded20f81bd5c5083fcb2fbce06c1f (patch)
treedfedee9d75f5fdc88aecb096408f806a09b4e4bb /tests
parent1ebddd16525c9f82540b8cbfb76685acf1d1b218 (diff)
Remove results directory out of repos
Delete results directory from qtip repos. And the results files will be stored under /home/opnfv/qtip/results. Change-Id: Ie1091e60eb77068c20a9095f0f85454f18173872 Signed-off-by: wu.zhihui <wu.zhihui1@zte.com.cn>
Diffstat (limited to 'tests')
-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',