#2150: flatten nested lists in ShellCommands commands=..
------------------------+--------------------
Reporter: mmadia | Owner:
Type: enhancement | Status: new
Priority: major | Milestone: 0.8.6
Version: 0.8.5 | Resolution:
Keywords: simple |
------------------------+--------------------
Comment (by dustin):
I would begin testing this by using something like this in your
master.cfg:
{{{
factory.addStep(ShellCommand(command=['trial', ['-d', '-B'], 'pyflakes']))
}}}
and see how it fails - in particular, it tries to pass `"['-d', '-B']"` as
an argument, which trial doesn't recognize.
Then, look at `master/buildbot/test/unit/test_steps_shell.py`, and add a
unit test that produces the same error.
Then, fix the problem, by flattening the nested lists -- and see both the
unit test and your master.cfg start working properly.
Then, make things a little more complex - add tests with two nested lists,
or lists nested two-deep, or an empty nested list, or whatever you can
think of - and make sure that the step does the right thing.
Finally, add a sentence to the documentation for !ShellCommand so that
others expect this behavior.
--
Ticket URL: <http://trac.buildbot.net/ticket/2150#comment:2>
Buildbot <http://buildbot.net/>
Buildbot: build/test automation
------------------------------------------------------------------------------
All the data continuously generated in your IT infrastructure
contains a definitive record of customers, application performance,
security threats, fraudulent activity, and more. Splunk takes this
data and makes sense of it. IT sense. And common sense.
http://p.sf.net/sfu/splunk-novd2d
_______________________________________________
Buildbot-commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/buildbot-commits