Re: [test-API PATCH 0/2] support variables share across testcases

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

 



On 04/16/2012 10:03 AM, Osier Yang wrote:
On 2012年04月06日 17:53, Guannan Ren wrote:

An example:

#sharedvar.cfg
domain:testa

domain:testb


#testa.py
import sharedmod

def testa(params):
conn = sharedmod.conn
logger = params['logger']

Given that the "connection" object is shared among
test cases now, why not "logger" object too?


       It's good idea, but if put the logger object in sharedmod.py
       the sharedmod.py will have to be included in each testcases
       right now, it is optional, only the testcase that wants to use
       the connection object offered by framework should import it.

       Maybe let me wait for some times until the sharedmod become
       necessary mod for all testcase, then move logger into it.

--
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]