mirror of
https://github.com/nasa/trick.git
synced 2025-01-07 21:58:46 +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
bd37006244
commit
4de4bf0692
@ -36,6 +36,10 @@ void Trick::MonteCarlo::master_shutdown() {
|
|||||||
print_statistics(&stdout) ;
|
print_statistics(&stdout) ;
|
||||||
fclose(file_ptr) ;
|
fclose(file_ptr) ;
|
||||||
|
|
||||||
|
if ( !except_return and failed_runs.size() > 0 ) {
|
||||||
|
except_return = -2 ;
|
||||||
|
}
|
||||||
|
|
||||||
exit(except_return);
|
exit(except_return);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user