Skip to content

Commit

Permalink
HPCC-30310 Test script fixes
Browse files Browse the repository at this point in the history
Eliminate possible false positive results from back-to-back runs of test.

Signed-off-by: Terrence Asselin <[email protected]>
  • Loading branch information
asselitx committed Nov 29, 2023
1 parent f722c8a commit 73dddd7
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion testing/esp/esdlcmd/esdlcmd-test.py
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,6 @@ def __init__(self, run_settings, name, command, esdl_file, xsl_path, use_stdout,
self.name = name
self.command = command
self.esdl_path = (self.run_settings.test_path / 'inputs' / esdl_file)
#self.service = service
self.xsl_path = xsl_path
self.options = options
self.output_path = Path(self.run_settings.output_base) / name
Expand Down Expand Up @@ -189,6 +188,9 @@ def validate_results(self):
if self.result.stdout != None and len(self.result.stdout) > 0:
with open((outName / 'from-stdout.ecl'), 'w', encoding='utf-8') as f:
f.write(self.result.stdout)
else:
logging.error('Missing stdout output for test %s', self.name)
return False

if (not key.exists()):
logging.error('Missing key file %s', str(key))
Expand Down

0 comments on commit 73dddd7

Please sign in to comment.