[Buildbot-devel] Blank properties

Fredric Dorothy fredricdorothy at gmail.com
Thu Jun 7 20:25:13 UTC 2012


I have a question about property defaults.  From the documentation I
found that I can do something like this:

f.addStep(ShellCommand(command=[ 'foo', Property('bar', default='') ]))

What I would like to happen is for command to be ['foo'] when the
property bar is not defined.  However, command turns out to be ['foo',
''], and that causes the script 'foo' to think it has an extra
argument passed to it.

Is there an easy way to remove empty strings from the command list
during the build?  Wouldn't it make sense to have the command list
automatically remove empty strings as the default behavior?

Thanks,
Fredric




More information about the devel mailing list