<div dir="ltr">Hi Skip,<br><br><div class="gmail_quote"><div dir="ltr">On Tue, May 1, 2018 at 1:19 PM Skip Montanaro &lt;<a href="mailto:skip.montanaro@gmail.com">skip.montanaro@gmail.com</a>&gt; wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><br>I&#39;m not familiar with the code, and with a quick skim nothing jumped out at<br>
me. Is it possible to include environment variable references in the<br>
addopts option? For example, is this valid?<br>
<br>
[pytest]<br>
addopts = --junit-xml=${XUNIT_DIR}/xunit.xml<br></blockquote><div><br></div><div>Yes this works, but because the junitxml plugin expands environment variables explicitly[1], it is not something done automatically for all ini settings. </div><div><br></div><div>[1] <a href="https://github.com/pytest-dev/pytest/blob/08aed1a6bf90e2b8641aa464b41a41f1e400b59e/_pytest/junitxml.py#L344">https://github.com/pytest-dev/pytest/blob/08aed1a6bf90e2b8641aa464b41a41f1e400b59e/_pytest/junitxml.py#L344</a></div><div><br></div><div>Cheers,</div><div>Bruno</div></div></div>