msmbuilder / msmbuilder-legacy

Legacy release of MSMBuilder
http://msmbuilder.org
GNU General Public License v2.0
25 stars 28 forks source link

entry_point() in script creates a limbo for untested code #436

Open schwancr opened 9 years ago

schwancr commented 9 years ago

Our scripting system has a bunch of code in the entry_point(), that isn't currently tested by test_wrappers, which will only run the <script>.main(*args) function.

This can mean that bugs slip through if the code in that section is not trivial. There are two alternatives I suppose:

1) Rework all of the scripts so that entry_point only contains the code for parsing the command-line args 2) Add an additional test for each script, which uses os.system to call the script from the command line.