I need to use "&&" to execute multiple commands in one step. So I create factory as below:
f1 = factory.BuildFactory()
f1.addStep(shell.ShellCommand, command=["sh", "-c", "pwd", "&&", "cd", "/home/xxx/yyy", "&&", "pwd"])
But during execution it's found that buildbot processes it as below, which makes it impossible to execute
sh -c pwd '&&' cd /home/xxx/yyy '&&' pwd
What I expected is
sh -c pwd && cd /home/xxx/yyy && pwd
Could anyone help me out of this please? Thanks.