Skip to content

Commit

Permalink
pull-tester.py: Re-enable coverage msg, new args to run test script
Browse files Browse the repository at this point in the history
  • Loading branch information
TheBlueMatt committed Oct 28, 2013
1 parent 47b9374 commit a27253d
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions qa/pull-tester/pull-tester.py
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,12 @@ def commentOn(commentUrl, success, inMerge, needTests, linkUrl):
auth=(os.environ['GITHUB_USER'], os.environ["GITHUB_AUTH_TOKEN"]))

if success == True:
post_data = { "body" : "Automatic sanity-testing: PASSED, see " + linkUrl + " for binaries and test log." + common_message}
if needTests:
message = "Automatic sanity-testing: PLEASE ADD TEST-CASES, though technically passed. See " + linkUrl + " for binaries and test log."
else:
message = "Automatic sanity-testing: PASSED, see " + linkUrl + " for binaries and test log."

post_data = { "body" : message + common_message}
elif inMerge:
post_data = { "body" : "Automatic sanity-testing: FAILED MERGE, see " + linkUrl + " for test log." + """
Expand Down Expand Up @@ -113,7 +118,7 @@ def testpull(number, comment_url, clone_url, commit):
run("chown -R ${BUILD_USER}:${BUILD_GROUP} ${CHROOT_COPY}/${OUT_DIR}", fail_hard=False)

script = os.environ["BUILD_PATH"]+"/qa/pull-tester/pull-tester.sh"
script += " ${BUILD_PATH} ${MINGW_DEPS_DIR} ${SCRIPTS_DIR}/BitcoindComparisonTool.jar 6 ${OUT_DIR}"
script += " ${BUILD_PATH} ${MINGW_DEPS_DIR} ${SCRIPTS_DIR}/BitcoindComparisonTool_jar/BitcoindComparisonTool.jar 0 6 ${OUT_DIR}"
returncode = run("chroot ${CHROOT_COPY} sudo -u ${BUILD_USER} -H timeout ${TEST_TIMEOUT} "+script,
fail_hard=False, stdout=out, stderr=out)

Expand Down

0 comments on commit a27253d

Please sign in to comment.