On 06/20/2012 03:51 PM, Guannan Ren wrote:
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
> autotest.
>
> Signed-off-by: Qing Lin<qinglbj(a)linux.vnet.ibm.com>
> Signed-off-by: Li Zhang<zhlcindy(a)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,
I remember the default dir name is not "src" but I checked the
upstream
it is.
ACK and pushed.
Thanks.
Thanks for your reviewing Guannan.
Thanks
Lin Qing