summaryrefslogtreecommitdiffstats
path: root/cucumber/features/support/helpers/exec_helper.rb
AgeCommit message (Collapse)AuthorFilesLines
2017-03-07lvc: reinstate VMcommand's ability to run commands and get resultsPhilip Hands1-17/+28
This modifies the inittab to run a very simple loop on d-i's ttyS0 that reads commands from stdin, runs them and tops and tails the output with various control characters to make it easier to see when we have a result. It outputs a BEL (Ctrl-G, \a, \007) at the start, then an STX (\002) before running the command, and an ETX (\003) afterwards, to bracket STDOUT. After the ETX comes the command's return code, in decimal, then a US (\037), then comes the STDERR, and finally a NUL (\000) That lets us send an 'exit' and look for a BEL then issue a command and find the values required to populate the @returncode, @stdout and @stderr values.
2016-05-21lvc: wait longer for the remote shellPhilip Hands1-1/+1
2016-05-11move cucumber things under cucumber/Philip Hands1-0/+79