Skip to content

Instantly share code, notes, and snippets.

@hgn
Last active June 19, 2019 08:38
Show Gist options
  • Save hgn/d8c52843d43d44cd6f936c2afcd34c48 to your computer and use it in GitHub Desktop.
Save hgn/d8c52843d43d44cd6f936c2afcd34c48 to your computer and use it in GitHub Desktop.
Python Builddriver API Brainstorming
import builddriver
result = builddriver.execute("make debug")
result.status()
# can be True or False
result.log()
# return a path where the output is captured (/tmp/foo.log)
result.tail()
# return the last 30 lines of the executing output
result.warnings()
# return a list of all warnings
result.errors()
# return a list of all errors
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment