From 71d715b04b2ded20f81bd5c5083fcb2fbce06c1f Mon Sep 17 00:00:00 2001 From: "wu.zhihui" Date: Sat, 5 Nov 2016 16:12:00 +0800 Subject: 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 --- tests/driver_test.py | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) (limited to 'tests') 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', -- cgit 1.2.3-korg