Hi!

On 24.02.2016 01:13, honas grael wrote:
Hello,
I'm running buildbot on windows 7, these are my first steps, so far I've followed the tutorials and they've been quite ok. I am struggling a little with ShellCommand, I am trying to run an executable from the commandline and pass it a parameter.

so from the command line in windows I would type

C:\Path\To\MyExecutable.exe fileparam1.txt

to do this I have a step as follows:
f.addStep(steps.ShellCommand(command=["C:\Path\To\MyExecutable.exe", "fileparam1.txt"]))

But I keep getting startCommand errors.
Am I using the shell command correctly here. I'm sure I'm missing something very obvious here

Regards


_______________________________________________
users mailing list
users@buildbot.net
https://lists.buildbot.net/mailman/listinfo/users

Do you escape backslashes in path?

I.e. instead of

    command="C:\Path\To\MyExecutable.exe"

should be

    command="C:\\Path\\To\\MyExecutable.exe"

or, more preferable,


    command=r"C:\Path\To\MyExecutable.exe"

If this is not the problem, can you post logs/exceptions/errors that you see when running such build?

--
Vladimir Rutsky

_______________________________________________
users mailing list
users@buildbot.net
https://lists.buildbot.net/mailman/listinfo/users

Reply via email to