Skip to content

Commit

Permalink
Set version v1.1.0-dev, add 'reason'
Browse files Browse the repository at this point in the history
  • Loading branch information
marble committed Oct 19, 2019
1 parent 2bc4bee commit 67eb4ea
Show file tree
Hide file tree
Showing 5 changed files with 14 additions and 6 deletions.
7 changes: 7 additions & 0 deletions CHANGES.rst
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
Release 1.1.0-dev (to be released)
==================================

* Feature: add parameter 'reason' for 'tool_exitcodes_2'



Release 1.0.1 (released Oct 2, 2019)
====================================

Expand Down
4 changes: 2 additions & 2 deletions VERSION.txt
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
1.0.1
1.1.0-dev

Update the version number in:

- VERSION.txt
- setup.py
- tct.py
- ChangeLog.txt
- CHANGES.rst
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

setup(
name='TCT Toolchain Tool',
version='1.0.1',
version='1.1.0-dev',
py_modules=['tct'],
packages= ['tctlib'],
include_package_data=True,
Expand Down
2 changes: 1 addition & 1 deletion tct.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
from tctlib import *
import six

__VERSION__ = '1.0.1'
__VERSION__ = '1.1.0-dev'

PY3 = sys.version_info[0] == 3

Expand Down
5 changes: 3 additions & 2 deletions tctlib/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -106,10 +106,11 @@ def versiontuple(v, n=12):
filled.append(point.zfill(n))
return tuple(filled)

def save_the_result(result, resultfile, params, facts, milestones, exitcode, CONTINUE):
def save_the_result(result, resultfile, params, facts, milestones, exitcode,
CONTINUE, reason):
tool_exitcodes_2 = milestones.get('tool_exitcodes_2', {})
k = '%s/%s' % (params['toolrelpath'], params['toolname'])
tool_exitcodes_2[k] = '%s,%s' % (exitcode, CONTINUE)
tool_exitcodes_2[k] = '%s,%s,%s' % (exitcode, CONTINUE, reason)
result['MILESTONES'].append({'tool_exitcodes_2': tool_exitcodes_2})
writejson(result, resultfile)
return True

0 comments on commit 67eb4ea

Please sign in to comment.