[users at bb.net] ShellSequence (ShellArg) not working with Interpolate?

Tristram, Falk falk.tristram at cognex.com
Fri Jul 7 10:52:01 UTC 2017


Hi all,

I got a very simple use case
ShellSequence ( commands = [ ShellArg(command='touch', Interpolate('%prop:whatever)s.lck')), ...

This leads to an exception caused by ShellArg, as follows:

        if isinstance(self.command, list):
            if not all([isinstance(x, str) for x in self.command]):
                config.error("%s must only have strings in it" %
                             (self.command,))

Giving the error message in the log:
2017-07-07 12:35:40+0200 [-] After rendering, ShellSequence `commands` is invalid: ['touch', u'this_is_a_valid_string.lck'] must only have strings in it.

I wonder what is going wrong here and why is my command not a string?

Best regards,
Falk
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.buildbot.net/pipermail/users/attachments/20170707/4a45fded/attachment.html>


More information about the users mailing list