On 01/19/2012 09:45 AM, Kristóf Katus wrote: > Hi there, > > is it possible to add a new variant to an already defined variants block from > another included Cartesian config file? The variants blocks themselves are not > named as far as I can see, so it would not be that easy. Here's a very simple > example: > > # original.cfg > variants: > - 1: > - 2: > > variants: > - a: > - b: > - c: > > # overwrites.cfg > include original.cfg > > # ??? > My question here: what should I write in "overwrites.cfg", if I want to add a > variant named "3" to the first variants block parsed from "original.cfg"? And > you can have multiple embedded variants blocks in other cases of course... > Important: I do not want to modify the original config file. > > Thanks, > > Kristóf > _______________________________________________ > Autotest mailing list > [email protected] > http://test.kernel.org/cgi-bin/mailman/listinfo/autotest
...Actually, my suggestion doesn't work :S I think because each variants block is treated as a new array "Dimension", so there's no way to "re-open" an already parsed one. I'll play with it a little more and see if I can find a solution. -- Chris Evich, RHCA, RHCE, RHCDS, RHCSS Quality Assurance Engineer e-mail: cevich + `@' + redhat.com o: 1-888-RED-HAT1 x44214 _______________________________________________ Autotest mailing list [email protected] http://test.kernel.org/cgi-bin/mailman/listinfo/autotest
