[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

[tor-commits] [pytorctl/master] Bug #4097: Clear old last_exit before requesting a new one



commit e15ed99df8e8e04cadd0f3792e42a621df6fbe02
Author: Mike Perry <mikeperry-git@xxxxxxxxxx>
Date:   Wed Oct 19 16:32:34 2011 -0700

    Bug #4097: Clear old last_exit before requesting a new one
    
    Should eliminate the keyerror in the test's node_map, which seemed to be due
    to really stale last_exits laying around from previous tests on a different
    consensus.
---
 ScanSupport.py |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

diff --git a/ScanSupport.py b/ScanSupport.py
index 8985fd7..e6752c5 100644
--- a/ScanSupport.py
+++ b/ScanSupport.py
@@ -164,6 +164,8 @@ class ScanHandler(PathSupport.PathBuilder):
     def notlambda(sm):
       plog("DEBUG", "Job for setexit: "+exit_name)
       cond.acquire()
+      # Clear last successful exit, we're running a new test
+      self.last_exit = None
       sm.set_exit(exit_name)
       cond.notify()
       cond.release()

_______________________________________________
tor-commits mailing list
tor-commits@xxxxxxxxxxxxxxxxxxxx
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-commits