Skip to content

Commit

Permalink
give more details on failure
Browse files Browse the repository at this point in the history
  • Loading branch information
thomas-mangin committed Jun 9, 2024
1 parent 8d6423b commit 2f4847e
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions qa/bin/functional
Original file line number Diff line number Diff line change
Expand Up @@ -327,7 +327,7 @@ class EncodingTests(Tests):
if self._check in self.stderr:
return True

return self.failed()
return self.failed('completed successfully')

API = re.compile(r'^\s*run\s+(.*)\s*?;\s*?$')

Expand Down Expand Up @@ -498,10 +498,10 @@ class DecodingTests(Tests):

def success(self):
self.collect()
if not self.stdout:
return self.failed()
if self.stderr:
return self.failed()
return self.failed('stderr is \n' + self.stderr)
if not self.stdout:
return self.failed('no stdout received')
try:
decoded = json.loads(self.stdout)
self._cleanup(decoded)
Expand Down Expand Up @@ -601,7 +601,7 @@ class ParsingTests(Tests):
def success(self):
self.collect()
if self.code != 0:
return self.failed()
return self.failed('return code is not zero')

return self.code == 0

Expand Down

0 comments on commit 2f4847e

Please sign in to comment.