pytest 3.9.1 - tmpdir_factory not creating symlink to latest run

Created on 17 Oct 2018  路  7Comments  路  Source: pytest-dev/pytest

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.

tmpdir regression

Most helpful comment

@dmitrytokarev ahh good idea, just updated the configuration, thanks!

All 7 comments

@pytest-dev/core i have to apologize - in my current setup i managed to accidentally push to master

i rectified the local situation for future use by setting up git remote set-url upstream --push no_push

It happens, don't worry! Thanks for fixing this up so quickly! 馃憤

@RonnyPfannschmidt when setting up protected branch include administrators then don't have to worry for any "local setup":
screen shot 2018-10-17 at 12 42 00 pm

@dmitrytokarev ahh good idea, just updated the configuration, thanks!

馃槵

Was this page helpful?
0 / 5 - 0 ratings