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

[tor-commits] [stem/master] 'Interrupted system call' error when running unit tests



commit 77527ddea6575f26f6b2c7dd12ecde2309202404
Author: Damian Johnson <atagar@xxxxxxxxxxxxxx>
Date:   Sun Jun 18 11:22:23 2017 -0700

    'Interrupted system call' error when running unit tests
    
    Huh. Not entirely sure what's up but when I run unit tests it fails with...
    
      Traceback (most recent call last):
        File "./run_tests.py", line 451, in <module>
          main()
        File "./run_tests.py", line 324, in main
          task.join()
        File "/home/atagar/Desktop/stem/test/task.py", line 218, in join
          self.result = self._background_pipe.recv()
      IOError: [Errno 4] Interrupted system call
    
    I suspect this is related to the unit tests finishing before the static tests
    do but not quite sure. Quick search seems to indicate it may be a python bug...
    
      https://bugs.python.org/issue17097
---
 test/task.py | 7 +++++--
 1 file changed, 5 insertions(+), 2 deletions(-)

diff --git a/test/task.py b/test/task.py
index ada9062..f764fe9 100644
--- a/test/task.py
+++ b/test/task.py
@@ -215,8 +215,11 @@ class Task(object):
 
   def join(self):
     if self._background_process:
-      self.result = self._background_pipe.recv()
-      self._background_process.join()
+      try:
+        self.result = self._background_pipe.recv()
+        self._background_process.join()
+      except IOError:
+        pass
 
 
 class ModuleVersion(Task):



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