call site 0 for test.config.getvalue_pathlist
test/rsession/testing/test_lsession.py - line 128
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
   def test_minus_x(self):
       if not hasattr(py.std.os, 'fork'):
           py.test.skip('operating system not supported')
       tmpdir = tmp
       subdir = "sub_lsession_minus_x"
       tmpdir.ensure(subdir, "__init__.py")
       tmpdir.ensure(subdir, "test_one.py").write(py.code.Source("""
               def test_1(): 
                   pass
               def test_2():
                   assert 0
               def test_3():
                   raise ValueError(23)
               def test_4(someargs):
                   pass
           """))
       args = [str(tmpdir.join(subdir)), '-x']
       config = py.test.config._reparse(args)
       assert config.option.exitfirst
       lsession = LSession(config)
       allevents = []
           
->     lsession.main(reporter=allevents.append, runner=box_runner)
       testevents = [x for x in allevents 
                       if isinstance(x, repevent.ReceivedItemOutcome)]
       assert len(testevents)
       passevents = [i for i in testevents if i.outcome.passed]
       failevents = [i for i in testevents if i.outcome.excinfo]
       assert len(passevents) == 1
       assert len(failevents) == 1
test/rsession/rsession.py - line 185
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
   def main(self, reporter=None, runner=None):
       # check out if used options makes any sense
       args = self.config.args  
          
->     hm = HostManager(self.config, hosts=[HostInfo('localhost')])
       hosts = hm.hosts
       if not self.config.option.nomagic:
           py.magic.invoke(assertion=1)
   
       reporter, startserverflag = self.init_reporter(reporter, 
           hosts, LocalReporter, args[0])
       reporter, checkfun = self.wrap_reporter(reporter)
           
       reporter(repevent.TestStarted(hosts, self.config.topdir, []))
       colitems = self.config.getcolitems()
       reporter(repevent.RsyncFinished())
   
       if runner is None:
           runner = self.init_runner()
   
       keyword = self.config.option.keyword
   
       itemgenerator = itemgen(colitems, reporter, keyword, self.reporterror)
       local_loop(self, reporter, itemgenerator, checkfun, self.config, runner=runner)
           
       retval = reporter(repevent.TestFinished())
       self.kill_server(startserverflag)
   
       if not self.config.option.nomagic:
           py.magic.revoke(assertion=1)
   
       self.write_docs()
       return retval
test/rsession/hostmanage.py - line 122
120
121
122
123
124
125
126
127
128
129
130
131
132
   def __init__(self, config, hosts=None):
       self.config = config
->     roots = self.config.getvalue_pathlist("dist_rsync_roots")
       addrel = ""
       if roots is None:
           roots = [self.config.topdir]
           addrel = self.config.topdir.basename 
       self._addrel = addrel
       self.roots = roots
       if hosts is None:
           hosts = self.config.getvalue("dist_hosts")
           hosts = [HostInfo(x, addrel) for x in hosts]
       self.hosts = hosts