4 Commits

Author SHA1 Message Date
Slawek Kaplonski
86620dacc6 Stop using not existing ShellCommandError exception class
In commit [1] was introduced exception class ShellCommandFailed
and it should be used in common.shell module. But by mistake
there was used not existing ShellCommandError class there.
This patch fixes that.

[1] https://review.opendev.org/#/c/612978/

Change-Id: I0b51165ea4d541b0cd2f5820a64cd7a82f23c6c9
2020-02-06 10:44:16 +01:00
Federico Ressi
0e04f8f2b7 Create wrapper tool for both local and remote shell command execution.
Create base function called execute that takes a command and execute
it using either subprocess module or an SSH client to allow
implementing commands wrapper that can be executed either locally or
remotelly.

It also try to handle timeouts and produce good error capable of
reporting whats written to stdout and stderr.

Change-Id: I1a30b82338f44a4182722973e7ad3da2872295fd
2018-11-14 14:51:40 +01:00
Federico Ressi
498a7f4945 Fix execute_script method to avoid infinite wait.
Fix execute_script method
Add support for timeout to execute_script

Change-Id: I8375ae174bc4631f5f56ce575be343d0f58d0318
2018-11-08 07:35:18 +00:00
Chandan Kumar
667d3d3260 Refactored Neutron tempest plugin directory structure
* switch from neutron.tests.tempest to neutron_tempest_plugin
* Cleaned up README.rst and setup.cfg
* Use neutron_tempest_plugin as a tempest plugin package
* Fixed gitreview
* Keeping flake8 Ignores in tox.ini as tempest plugin is
  imported from neutron codebase.

Change-Id: I42d389836e72813fdeebc797a577f4a8ac2ee603
2017-11-13 09:19:11 +05:30