FileNotFoundError: [Errno 2] No such file or directory in the fake filesystem: allure-results

Всем доброго времени суток! Запускаю pytest-ы в докере (debian-buster) с нужным окружением: python3 setup.py test, ошибок нет, затем подключил к pytest allure-reports: export PYTEST_ADDOPTS="--alluredir=${buildDir}/allure-results", где buildDir=/home/build (внутри контейнера), некоторые тесты начали валиться с ошибками:

self = <pyfakefs.fake_filesystem.FakeFilesystem object at 0x7f6d7de99048>
errno = 2, filename = '/home/build/allure-results', winerror = None

    def raise_os_error(self, errno, filename=None, winerror=None):
        """Raises OSError.
        The error message is constructed from the given error code and shall
        start with the error string issued in the real system.
        Note: this is not true under Windows if winerror is given - in this
        case a localized message specific to winerror will be shown in the
        real file system.
....
        Args:
            errno: A numeric error code from the C variable errno.
            filename: The name of the affected file, if any.
            winerror: Windows only - the specific Windows error code.
        """
        message = self._error_message(errno)
        if (winerror is not None and sys.platform == 'win32' and
                self.is_windows_fs):
            raise OSError(errno, message, filename, winerror)
>       raise OSError(errno, message, filename)
E       FileNotFoundError: [Errno 2] No such file or directory in the fake filesystem: '/home/build/allure-results'

/usr/local/lib/python3.7/dist-packages/pyfakefs/fake_filesystem.py:960: FileNotFoundError

Есть подозрение, что временно "монтируется" фейк фс, для тестов , типа в ней ставиться какой-то фейковый пакет, потом фейке фс удаляется или отмонтируется, и, не успевает отмонтироваться до того, как создается allure отчет, так как allure должен создаваться не в фейковой системе, а на реальной файловой системе докера

Кто-нибудь может подсказать куда копать ?)


Ответы (0 шт):