mirror of
https://github.com/nasa/trick.git
synced 2024-12-23 23:12:26 +00:00
Monte carlo AttributeError's caused by bad configuration still returns zero in master sim #269
If there were bad runs, the master will now exit with a non-zero status.
This commit is contained in:
parent
b102356330
commit
3a261929e8
@ -38,6 +38,10 @@ void Trick::MonteCarlo::master_shutdown() {
|
||||
print_statistics(&stdout) ;
|
||||
fclose(file_ptr) ;
|
||||
|
||||
if ( !except_return and failed_runs.size() > 0 ) {
|
||||
except_return = -2 ;
|
||||
}
|
||||
|
||||
exit(except_return);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user