aboutsummaryrefslogtreecommitdiff
path: root/lava_dispatcher/shell.py
AgeCommit message (Collapse)Author
2018-09-17Remove python2 leftoverRémi Duraffort
In python3, all classes are inheriting from object by default.
2018-07-10Some pylint fixesNeil Williams
Change-Id: Ic5c1b533c3479b4fdb8cbfe56d051022d1efa779
2018-06-25Set the shell prompt in all cases after 5d7c2090Rémi Duraffort
Change-Id: Iab02aa99a0e2fc53f4184d535aa7882490d0b60b
2018-06-21LAVA-1120 - drop export PS1 lava-testNeil Williams
This export is no longer required and plays awkwardly with second UART support. Change-Id: I2cd74adfdb1b49544727c6175e377193384f8739
2018-06-20Remove "args" from Action.run()Rémi Duraffort
This argument is not used anymore. Change-Id: I9cc98ed14003e79110c820149570cc1248549535
2018-06-08Change spawnwindowsize to spawn_maxreadNeil Williams
spawnwindowsize limits the amount of buffer searched without changing the size of the buffer, so prompts were missed. Use maxread - within the platform/tty restrictions - to slightly improve the buffer size. Keep searchwindowsize at the default of searching the entire buffer. Change-Id: I99fa570c6537a1b499d34533bc214ae939084a1a
2018-06-07Allow limiting the pexpect spawn_window_sizeNeil Williams
Change-Id: Icae93ccd1949c8ccde656371dbbb9b0a66a3d03d
2018-05-23Create lava_common for Timeout and ExceptionsNeil Williams
Make a clear separation between lava_server and lava_dispatcher binary packages so that a master does not need all the dependencies of lava-dispatcher installed (and does not necessarily have a local worker). Update documentation on how lava-common can be used. Change-Id: I040a44c7ce6d853524ccc33e08df593b0d14c54f
2018-05-03dispatcher: raise a TestError for invalid regexpRémi Duraffort
Change-Id: I2fa71e84007a7ca7ced8f9f078027c85fd874660
2018-04-25Port classes to python3 onlyRémi Duraffort
Change-Id: I8bc55876f82817533dfef42128aefea15c904311
2018-04-03Remove python2 specific codeRémi Duraffort
Change-Id: I6288743094584110b7815cae41caaa994b702a66
2018-03-28Fixup connection.prompt_str assumptionNeil Williams
The complex string / list handling of the connection prompts is a pexpect behaviour. Clarify our code handling to avoid TypeError when adding a list to an existing prompt string by first converting to a list with a single string entry. Change-Id: I570f2ad51b436a4a7bfcac1e642bb2533b788f16
2018-03-28Python3 fixesNeil Williams
Ensure that pexpect is able to replace invalid UTF8 characters received over the serial connection without losing input or raising an exception. Fix pylint warning in power.py and output the full exception instead of just the summary message. Change-Id: I1cb7e0da0b015a50d99bdea58ec22d6ac3788226
2018-02-15Move name, description and summary as class variableRémi Duraffort
This also fix the name when calling parent __init__ function. Change-Id: I302c3920eed9ef51232e22d75d555f0d34abf510
2017-11-30Prevent crash if logfile is None in shell.Neil Williams
https://staging.validation.linaro.org/scheduler/job/202322#L1126 Change-Id: I2068405054d2f01d319dd51b194b9ff992cd1400
2017-11-24LAVA-1105 Disconnect from connections cleanly.Neil Williams
Requires the new connection command support from the second UART changes to support tags for each connection command. telnet and ssh can be supported at this time. Change-Id: Ia787ba3e0d971dd8cdae6fed341cc845d191a4c2
2017-11-17Never return/break/continue in finally blockRémi Duraffort
prospector error message: lost-exception / return statement in finally block may swallow exception For instance, calling foo() will return 1, without raising the exception. def foo(): try: raise Exception() finally: return 1 Change-Id: Ic3ae097a24d56af366cf3c2c1ca1c5544efd4255
2017-11-03LAVA-1098 unassigned variable in read_feedbackNeil Williams
Change-Id: If23943e7e8e9cf285c4c43d0b9c9eeeeea5ef1b6
2017-10-31Only log when feedback content was foundNeil Williams
Ignore empty reads or single newline reads. Change-Id: I15a9ec4ef9a483a62ee717233cd5f3514765a4e8
2017-10-25Remove v1 codeRémi Duraffort
Change-Id: I098edd9edfeb968b303eaedc6afb6654e43b4b98