Google
  Web www.spinics.net

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



[Virt Tools]     [Libvirt Users]     [Fedora Users]     [Fedora Legacy]     [Fedora Maintainers]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]

Powered by Linux

Google
  Web www.spinics.net