ianmiell / shutit

Automation framework for programmers
http://ianmiell.github.io/shutit/
MIT License
2.15k stars 110 forks source link

Nested many levels deep long commands and send_and_get_output #275

Closed ianmiell closed 7 years ago

ianmiell commented 7 years ago

Nested many levels deep long commands and send_and_get_output, eg:

            shutit.send_and_get_output('etcdctl --endpoints https://192.168.2.14:2379,https://192.168.2.15:2379,https://192.168.2.16:2379 --ca-file /etc/origin/master/master.etcd-ca.crt --cert-file /etc/origin/master/master.etcd-client.crt --key-file /etc/origin/master/master.etcd-client.key member add ' + newnode + '.vagrant.test https://${ETCDIP}:2380 | grep ^ETCD > /tmp/out',note='Add node to cluster')
ianmiell commented 7 years ago

It may be an error to do with the failure of the comamnd, but need to check.

ianmiell commented 7 years ago

No, definitely looks to be a problem - I'm having to redirect output and then get the send_and_get_output of the cat of that file.

ianmiell commented 7 years ago

Done, adding a test for this in vagrant_test.sh

ianmiell commented 7 years ago

test added to vagrant tests.

ianmiell commented 7 years ago

Need to validate vagrant tests.

ianmiell commented 7 years ago

Added to tests.