[qmtest] environment variable 'targetname'

Stefan Seefeld stefan at codesourcery.com
Thu May 19 14:36:17 UTC 2005


Richard Poppe wrote:
> I am using the following version:
> C:\tdb>qmtest.py --version
> QMTest 2.2
> Copyright (C) 2002, 2003, 2004 CodeSourcery, LLC
> 
> I also discovered another issue which may be related. When i am 
> executing my test t1 i get an environment variable 'QMV_qmtest__id=t1', 
> but when i am executing this test by executing a suite which contains 
> this test the environment variable is not available anymore.

I think both are indeed related: the function which inserts environment
variables for context variables only considers those that have type 'str'.
However, in the cases you mention the value is obtained from a dom node,
and so the actual type is 'unicode'.
The following patch also considers unicode values and passes them
through if convertible to a 'str'.

Regards,
		Stefan
-------------- next part --------------
A non-text attachment was scrubbed...
Name: command.diff
Type: text/x-patch
Size: 923 bytes
Desc: not available
URL: <http://sourcerytools.com/pipermail/qmtest/attachments/20050519/0e1fe232/attachment.bin>


More information about the qmtest mailing list