[qmtest] environment variable 'targetname'

Mark Mitchell mark at codesourcery.com
Wed May 11 17:14:23 UTC 2005


Richard Poppe wrote:

> Add TARGET_CONTEXT_PROPERTY to 
> C:\Python23\Lib\site-packages\qm\test\target.py (i put it before the 
> DB_PATH_CONTEXT_PROPERTY):
>            #target_name = "constant"
>            target_name = self.GetName()
>            context[context.TARGET_CONTEXT_PROPERTY] \
>                = "Target %s" % target_name
>            context[context.DB_PATH_CONTEXT_PROPERTY] \
>                = descriptor.GetDatabase().GetPath()
> 
> I created a target:
> qmtest.py create-target ws1 thread_target.ThreadTarget group1

> After running the test (it starts a windows command box and executes the 
> set command) the error details show "QMV_qmtest__target=Target constant" 
> in case of the constant and nothing in case of the GetName().

That's very strange; your code looks correct.

Stefan, would you see if you can reproduce that, and file a bug if you can?

-- 
Mark Mitchell
CodeSourcery, LLC
mark at codesourcery.com
(916) 791-8304



More information about the qmtest mailing list