[qmtest] Passing context variables through command line...

Mohamed Barwani mohamedb at sgi.com
Sun Jul 27 23:46:31 UTC 2008


On Fri, 25 Jul 2008 11:04:09 am Mohamed Barwani wrote:
> What am I doing wrong? The test can't seem to find the context variables
>
> []# qmtest create-tdb
> QMTest has created a new test database at '/root/mohamedb/.'.
> []# qmtest create --id=print_context -a source="print context" test
> python.ExecTest
> []# qmtest run -c foo=bar
> {'qmtest.tmpdir': '/tmp/tmpXS9UdD', 'qmtest.target': 'local',
> 'qmtest.dbpath': '/root/mohamedb', 'qmtest.id': 'print_context'} --- TEST
> RESULTS -------------------------------------------------------------
>
>   print_context                                 : PASS
>
> --- TESTS THAT DID NOT PASS
> --------------------------------------------------
>
>   None.
>
>
> --- STATISTICS
> ---------------------------------------------------------------
>
>        1        tests total
>        1 (100%) tests PASS
>
> Note: {'foo':'bar'} is not in the dictionary

Using context.get() method retrieves the variable anyway.. ignore this!


-- 
Mohamed Barwani
ASGQA
"Science may set limits to knowledge, but should not set limits to 
imagination."
-- Bertrand Russell



More information about the qmtest mailing list