On Wednesday, 23 September 2015 11:18:43 UTC-7, alain.d...@nrc-cnrc.gc.ca wrote: > > Before I run the the unit tests, I need restart the tdddemoPyramidApp.py > script so that it runs the most recent version of the app. When I run the > tests outside of Jenkins, I just Ctrl-C the script and re-issue the command > python tdddemoPyramidApp. > > Not sure how to get Jenkins to do this. I guess I could write a script > that looks for a process that is running tdddemoPyramidApp.py and kills it > before restarting it, but I was wondering if there is an easier way. >
Assuming your tests are written in Python, then I'd recommend starting a webtest.http.StopableWSGIServer [1] as part of your test setup. [1] http://webtest.readthedocs.org/en/latest/api.html#module-webtest.http Laurence -- You received this message because you are subscribed to the Google Groups "pylons-devel" group. To unsubscribe from this group and stop receiving emails from it, send an email to pylons-devel+unsubscr...@googlegroups.com. To post to this group, send email to pylons-devel@googlegroups.com. Visit this group at http://groups.google.com/group/pylons-devel. For more options, visit https://groups.google.com/d/optout.