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

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

 



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@xxxxxxxxxxxxxxxxxx>
Signed-off-by: Li Zhang<zhlcindy@xxxxxxxxxxxxxxxxxx>
---
 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

--
libvir-list mailing list
libvir-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/libvir-list


[Index of Archives]     [Virt Tools]     [Libvirt Users]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]     [Fedora Tools]