Skip to content

Commit

Permalink
Add verbose to test failing in CI but pass in local
Browse files Browse the repository at this point in the history
  • Loading branch information
ngoiz committed Jun 16, 2022
1 parent eceff9c commit 684e5c3
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion tests/uvlm/static/polars/generate_wing.py
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ def generate_infinite_wing(case_name, alpha, **kwargs):
settings['SHARPy'] = {'case': case_name,
'route': case_route,
'flow': kwargs.get('flow', []),
'write_screen': 'off',
'write_screen': kwargs.get('write_screen', 'off'),
'write_log': 'on',
'log_folder': output_route,
'log_file': case_name + '.log'}
Expand Down
5 changes: 3 additions & 2 deletions tests/uvlm/static/polars/test_polars.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ class TestAirfoilPolars(unittest.TestCase):
polar.initialise(np.column_stack((polar_data[:, 0] * np.pi / 180, polar_data[:, 1], polar_data[:, 2],
polar_data[:, 4])))

print_info = False
print_info = True

def test_infinite_wing(self):
"""
Expand Down Expand Up @@ -108,7 +108,8 @@ def run_linear_test(self, alpha, cases_route, output_route):
polar_file=self.route_test_dir + '/xf-naca0018-il-50000.txt',
aspect_ratio=1e7,
main_ea=0.25,
output_route=output_route)
output_route=output_route,
write_screen=self.print_info)

derivatives = self.postprocess_linear(case_name)

Expand Down

0 comments on commit 684e5c3

Please sign in to comment.