Skip to content

Commit

Permalink
GH-632 Log errors on set contract failure
Browse files Browse the repository at this point in the history
  • Loading branch information
heifner committed Aug 24, 2024
1 parent b1d37aa commit 6e61760
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion tests/TestHarness/testUtils.py
Original file line number Diff line number Diff line change
Expand Up @@ -308,7 +308,7 @@ def toJson(retStr, trace=False, silentErrors=True):
@staticmethod
def runCmdArrReturnJson(cmdArr, trace=False, silentErrors=True):
retStr=Utils.checkOutput(cmdArr)
return Utils.toJson(retStr)
return Utils.toJson(retStr, trace, silentErrors)

@staticmethod
def runCmdReturnStr(cmd, trace=False, ignoreError=False):
Expand Down
2 changes: 1 addition & 1 deletion tests/TestHarness/transactions.py
Original file line number Diff line number Diff line change
Expand Up @@ -168,7 +168,7 @@ def publishContract(self, account, contractDir, wasmFile, abiFile, waitForTransB
retries = retries + 1
start=time.perf_counter()
try:
trans=Utils.runCmdReturnJson(cmd, trace=False)
trans=Utils.runCmdReturnJson(cmd, trace=False, silentErrors=shouldFail)
self.trackCmdTransaction(trans)
if Utils.Debug:
end=time.perf_counter()
Expand Down

0 comments on commit 6e61760

Please sign in to comment.