Skip to content

pytest 3.9.1 - tmpdir_factory not creating symlink to latest run #4179

@mulawamichal

Description

@mulawamichal

hi,

on previous pytest (3.8.2 and earlier) when using a tmpdir_factory fixture it was creating subsequent directories for each of runs in pytest-of-$USER and a symlink to most recent one like this:

foobar@foobar:~$ ll /tmp/pytest-of-foobar/
total 56
drwxr-xr-x  5 foobar foobar  4096 Oct 17 09:23 .
drwxrwxrwt  5 root   root   36864 Oct 17 09:23 ..
drwxr-xr-x 14 foobar foobar  4096 Oct 17 09:19 pytest-0
drwxr-xr-x  4 foobar foobar  4096 Oct 17 09:20 pytest-1
drwxr-xr-x  4 foobar foobar  4096 Oct 17 09:24 pytest-2
lrwxrwxrwx  1 foobar foobar    30 Oct 17 09:23 pytest-foobar -> /tmp/pytest-of-foobar/pytest-2

On latest pystest (3.9.1) the symlink is not getting created - which is a HUUUUUGE issue for me.

Metadata

Metadata

Labels

plugin: tmpdirrelated to the tmpdir builtin plugintype: regressionindicates a problem that was introduced in a release which was working previously

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions