>-----Original Message----- >From: Lucas Meneghel Rodrigues [mailto:[email protected]] >That would be fairly easy to accomplish, you can instantiate a config >parser, make it read the config file you want, and then use the method >get_dicts, that will yield all the dictionaries you need, you just need >to make them to be printed to some file. Well, it'd be something like: > >""" >needed imports, yadda yadda... > >my_control = open('/path/to/my_control') >parser = kvm_config.Parser() >parser.parse_file('foo.cfg') > >for dict in parser.get_dicts(''): > my_control.write("job.run_test(url='kvm', params=%s)" % dict) >""" >
This is working for me. Thank you! Jason _______________________________________________ Autotest mailing list [email protected] http://test.kernel.org/cgi-bin/mailman/listinfo/autotest
