[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

[libvirt] [PATCH] [libvirt-test-API] modify test dir and log dir path in autotest.



In autotest,test dir match test class name,which should be 'libvirt_test_api' for libvirt-test-api test suit.And the default tar extract is 'src'.So we should modify the autotest_testdir as 'tests/libvirt_test_api',and autotetst log dir as
'tests/libvirt_test_api/src/log'.Otherwise,libvirt-test-api can not work in
autotest.

Signed-off-by: Qing Lin<qinglbj linux vnet ibm com>
Signed-off-by: Li Zhang<zhlcindy linux vnet ibm com>
---
 libvirt-test-api |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/libvirt-test-api b/libvirt-test-api
index cec7679..017343c 100755
--- a/libvirt-test-api
+++ b/libvirt-test-api
@@ -141,8 +141,8 @@ class Main(object):
             testid = logname[-3:]
             log_xml_parser.add_test_xml(testrunid, testid)
             if os.environ.has_key('AUTODIR'):
- autotest_testdir = os.path.join(os.environ['AUTODIR'],'tests/libvirt_test_API') - logfile = os.path.join('%s/libvirt-test-API/log/%s' % (autotest_testdir, testrunid), logname) + autotest_testdir = os.path.join(os.environ['AUTODIR'],'tests/libvirt_test_api') + logfile = os.path.join('%s/src/log/%s' % (autotest_testdir, testrunid), logname)
             else:
                 logfile = os.path.join('log/%s' % testrunid, logname)
             procs.append(generator.FuncGen(cases_func_ref_dict,
--
1.7.10.2


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]