gopinath-langote / 1build

Frictionless way of managing project-specific commands

Home Page:https://1build.gitbook.io

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Use python subprocess api to execute commands

gopinath-langote opened this issue · comments

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