Skip to content

Commit

Permalink
Corrected test if simulation was not performed
Browse files Browse the repository at this point in the history
  • Loading branch information
mwetter committed Feb 2, 2022
1 parent 544f750 commit 3a754f2
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions buildingspy/development/regressiontest.py
Original file line number Diff line number Diff line change
Expand Up @@ -2685,8 +2685,9 @@ def _checkReferencePoints(self, ans):
self._isPresentAndTrue('exportFMU', data[self._modelica_tool]))
# Only if the simulation was successful are we reading the results.
# (Simulation errors are reported earlier already.)
if 'simulation' in data[self._modelica_tool]:
check_condition = check_condition and data[self._modelica_tool]['simulation']['success']
check_condition = check_condition and \
'simulation' in data[self._modelica_tool] and \
data[self._modelica_tool]['simulation']['success']

if check_condition:
get_user_prompt = True
Expand Down

0 comments on commit 3a754f2

Please sign in to comment.