Skip to content

Commit

Permalink
Refs #3978 performance tests: add the commit ID to the history
Browse files Browse the repository at this point in the history
  • Loading branch information
Janik Zikovsky committed Oct 25, 2011
1 parent 722da75 commit e571d5a
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions Test/PerformanceTests/xunit_to_sql.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@
# Variables string for all tests
variables = ""
revision = 0
commitid = ''

def handle_testcase(case, suite_name):
""" Handle one test case and save it to DB"""
Expand All @@ -49,6 +50,7 @@ def handle_testcase(case, suite_name):
environment=envAsString(),
runner="ctest",
revision=revision,
commitid=commitid,
runtime=time,
cpu_fraction=cpu_fraction,
success=True,
Expand Down Expand Up @@ -90,6 +92,10 @@ def convert_xml(filename):
default="",
help='Optional string of comma-separated "VAR1NAME=VALUE,VAR2NAME=VALUE2" giving some parameters used, e.g. while building.')

parser.add_argument('--commit', dest='commitid',
default="",
help='Commit ID of the current build (a 40-character SHA string).')

parser.add_argument('xmlpath', metavar='XMLPATH', type=str, nargs='+',
default="",
help='Required: Path to the Xunit XML files.')
Expand All @@ -106,6 +112,8 @@ def convert_xml(filename):
variables = args.variables
# Add a new revision and get the "revision" number
revision = sqlresults.add_revision()
# Save the commitid
commitid = args.commitid

# Convert each file
for file in args.xmlpath:
Expand Down

0 comments on commit e571d5a

Please sign in to comment.