Skip to content

Instantly share code, notes, and snippets.

@hgn
Last active June 19, 2019 08:38
Show Gist options
  • Select an option

  • Save hgn/d8c52843d43d44cd6f936c2afcd34c48 to your computer and use it in GitHub Desktop.

Select an option

Save hgn/d8c52843d43d44cd6f936c2afcd34c48 to your computer and use it in GitHub Desktop.

Revisions

  1. hgn revised this gist Jun 19, 2019. 1 changed file with 7 additions and 4 deletions.
    11 changes: 7 additions & 4 deletions builddriver.py
    Original file line number Diff line number Diff line change
    @@ -3,14 +3,17 @@

    result = builddriver.execute("make debug")

    result.status
    result.status()
    # can be True or False

    result.log
    result.log()
    # return a path where the output is captured (/tmp/foo.log)

    result.warnings
    result.tail()
    # return the last 30 lines of the executing output

    result.warnings()
    # return a list of all warnings

    result.errors
    result.errors()
    # return a list of all errors
  2. hgn created this gist Jun 19, 2019.
    16 changes: 16 additions & 0 deletions builddriver.py
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,16 @@

    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.warnings
    # return a list of all warnings

    result.errors
    # return a list of all errors