Skip to content

Commit 48b7014

Browse files
Merge pull request #401 from nicoddemus/mainargv-docs
Add docs for sys.argv access from workers
2 parents ccdb36a + 1276df4 commit 48b7014

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

README.rst

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -223,6 +223,12 @@ defined:
223223
The information about the worker_id in a test is stored in the ``TestReport`` as
224224
well, under the ``worker_id`` attribute.
225225

226+
Acessing ``sys.argv`` from the master node in workers
227+
-----------------------------------------------------
228+
229+
To access the ``sys.argv`` passed to the command-line of the master node, use
230+
``request.config.workerinput["mainargv"]``.
231+
226232

227233
Specifying test exec environments in an ini file
228234
------------------------------------------------

0 commit comments

Comments
 (0)