On 11/03/2010 03:31 PM, Yufang Zhang wrote: > Does it make sense to add a new operator like '?-=' in the parser so > that the key would be deleted when it exists in dict?
Good idea. Just like what we are doing in xen-autotest :) > > On 11/03/2010 03:23 PM, Jinxin Zheng wrote: >> On 11/03/2010 03:07 PM, Jason Wang wrote: >>> Jinxin Zheng writes: >>> > Hi, >>> > >>> > Is there any way to delete an existing option in the kvm test >>> config file? >>> > >>> > I mean, something like this: >>> > >>> > -- >>> > key1 = value1 >>> > key2 = value2 >>> > key3 = value3 >>> > >>> > variants: >>> > - one: >>> > key1 = Hello World >>> > unset key2<--- delete the option only in this dict. >>> > - two: >>> > >>> >>> I'm not sure but does >>> >>> key2 = >>> >>> works? >> >> Thank you. This sets the option empty but does not delete the option. >> >>> > -- >>> > >>> > ??? >>> > >>> > Thanks. >>> > >>> > -- >>> > Jinxin Zheng >>> > _______________________________________________ >>> > Autotest mailing list >>> > [email protected] >>> > http://test.kernel.org/cgi-bin/mailman/listinfo/autotest >> -- Regards. Jinxin _______________________________________________ Autotest mailing list [email protected] http://test.kernel.org/cgi-bin/mailman/listinfo/autotest
