]> git.llucax.com Git - software/pymin.git/blobdiff - pymin/procman.py
Add an example of process waiting to testcase.
[software/pymin.git] / pymin / procman.py
index 9e3cc92404df050e9d66c053fbeac1c823029599..f6a393dc03325425ef03d84d72900583183f849e 100644 (file)
@@ -275,3 +275,9 @@ if __name__ == '__main__':
     assert 'test-once' not in manager.services
     assert 'test-once' not in manager.namemap
 
+    call('test-wait', ('sleep', '2'))
+    print 'test-wait returned?', get('test-wait').process.poll()
+    print 'Waiting test-wait to return...'
+    ret = get('test-wait').process.wait()
+    print 'Done! returned:', ret
+