Skip to content

Commit

Permalink
Show problems in failed test
Browse files Browse the repository at this point in the history
  • Loading branch information
t-sommer committed Jul 28, 2021
1 parent 0940670 commit fa2d7de
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test_build.py
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ def validate(self, build_dir, fmi_types=['ModelExchange', 'CoSimulation'], model

problems = validate_fmu(fmu_filename)

self.assertTrue(not problems)
self.assertEqual([], problems)

if model == 'Feedthrough':
start_values = {'real_fixed_param': 1, 'string_param': "FMI is awesome!"}
Expand Down Expand Up @@ -188,7 +188,7 @@ def test_fmi3(self):

for model in ['Clocks', 'LinearTransform']:
problems = validate_fmu(filename=os.path.join(build_dir, 'dist', model + '.fmu'))
self.assertTrue(not problems)
self.assertEqual([], problems)


if __name__ == '__main__':
Expand Down

0 comments on commit fa2d7de

Please sign in to comment.