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

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

On 06/18/2012 04:16 PM, Lin Qing wrote:
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

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)
                 logfile = os.path.join('log/%s' % testrunid, logname)

   I remember the default dir name is not "src" but I checked the upstream
   it is.

   ACK and pushed.

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