Use python subprocess api to execute commands
gopinath-langote opened this issue · comments
Gopinath Langote commented
Currently, we use os.system
API to execute commands. Which do have much control on the pogram side.
This story is about using subprocess
API to execute the command.
ACs:
- The output of the command should be a real-time, not printing output after command runs fully.
- before – command – after should work as it is meaning – if one of the commands fails, the program will not execute next command(s)
- Assert commands output(along with the program output) in the tests