Skip to content

Commit e0045f2

Browse files
Return exit code 1 if warnings are given
Signed-off-by: ClemensLinnhoff <[email protected]>
1 parent 3e7d5a4 commit e0045f2

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

Diff for: osivalidator/osi_general_validator.py

+6
Original file line numberDiff line numberDiff line change
@@ -199,6 +199,8 @@ def main():
199199

200200
trace.close()
201201
display_results()
202+
if get_num_logs() > 0:
203+
exit(1)
202204

203205

204206
def process_message(message, timestep, data_type):
@@ -224,5 +226,9 @@ def display_results():
224226
return LOGGER.synthetize_results(LOGS)
225227

226228

229+
def get_num_logs():
230+
return len(LOGS)
231+
232+
227233
if __name__ == "__main__":
228234
main()

0 commit comments

Comments
 (0)