sh1nu11bi / sulley

Automatically exported from code.google.com/p/sulley
GNU General Public License v2.0
0 stars 0 forks source link

sessions.py restart_interval does not honor skip value #17

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Set the restart_interval to a small value, 10
2. Set the skip value to a high value, 100
3. The processes on the target will be restarted 100/10 times

sessions.py patch:
OLD:
# if we've hit the restart interval, restart the target.
if self.restart_interval and self.total_mutant_index %
self.restart_interval == 0:

NEW:
# if we've hit the restart interval, restart the target.
if self.restart_interval and self.total_mutant_index %
self.restart_interval == 0 and self.total_mutant_index > self.skip:

Original issue reported on code.google.com by trav.e...@gmail.com on 15 Oct 2009 at 3:53