Source: kas Version: 2.3.3-1 Severity: important Dear maintainer,
Your packages showed up as regressing its autopkgtest on arm64 due to a new openssh upload. I looked at the error and it seems to be caused by an internet connection issue. Hence, I noticed your test requires internet access. In that case, your test should declare that in the debian/tests/control file with a needs-internet restriction. It would also be go to be resilient to network issues and e.g. have the test retried two or three times with a small waiting time in between. Paul https://ci.debian.net/data/autopkgtest/testing/arm64/k/kas/11049237/log.gz ==================================== ERRORS ==================================== ____________________ ERROR at setup of test_layers_exclude _____________________ tmpdir = local('/tmp/pytest-of-debci/pytest-0/test_layers_exclude0') @pytest.fixture def dokas(tmpdir): tdir = str(tmpdir.mkdir('test_layers')) shutil.rmtree(tdir, ignore_errors=True) shutil.copytree('tests/test_layers', tdir) os.chdir(tdir) > kas.kas(['shell', 'test.yml', '-c', 'true']) /tmp/autopkgtest-lxc.0hdiftco/downtmp/build.oPh/src/tests/test_layers.py:36: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/dist-packages/kas/kas.py:171: in kas plugin.run(args) /usr/lib/python3/dist-packages/kas/plugins/shell.py:92: in run macro.run(ctx, args.skip) /usr/lib/python3/dist-packages/kas/libcmds.py:96: in run command.execute(ctx) /usr/lib/python3/dist-packages/kas/libcmds.py:374: in execute repos_fetch(ctx.config.get_repos()) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ repos = [<kas.repos.GitRepo object at 0xffff8d707d60>, <kas.repos.GitRepo object at 0xffff8d7071f0>, <kas.repos.GitRepo object at 0xffff8d707be0>, <kas.repos.GitRepo object at 0xffff8d707d30>] def repos_fetch(repos): """ Fetches the list of repositories to the kas_work_dir. """ tasks = [] for repo in repos: tasks.append(asyncio.ensure_future(repo.fetch_async())) loop = asyncio.get_event_loop() loop.run_until_complete(asyncio.wait(tasks)) for task in tasks: if task.result(): > sys.exit(task.result()) E SystemExit: 128 /usr/lib/python3/dist-packages/kas/libkas.py:167: SystemExit ---------------------------- Captured stderr setup ----------------------------- 2021-03-13 15:28:58 - INFO - pytest-3 2.3.3 started 2021-03-13 15:28:58 - INFO - pytest-3 2.3.3 started 2021-03-13 15:28:58 - INFO - pytest-3 2.3.3 started 2021-03-13 15:28:58 - INFO - pytest-3 2.3.3 started 2021-03-13 15:28:58 - INFO - pytest-3 2.3.3 started 2021-03-13 15:28:58 - INFO - pytest-3 2.3.3 started 2021-03-13 15:28:58 - INFO - pytest-3 2.3.3 started 2021-03-13 15:28:58 - INFO - pytest-3 2.3.3 started 2021-03-13 15:28:58 - INFO - /tmp/pytest-of-debci/pytest-0/test_layers_exclude0/test_layers$ git rev-parse --show-toplevel 2021-03-13 15:28:58 - INFO - /tmp/pytest-of-debci/pytest-0/test_layers_exclude0/test_layers$ git rev-parse --show-toplevel 2021-03-13 15:28:58 - INFO - /tmp/pytest-of-debci/pytest-0/test_layers_exclude0/test_layers$ git rev-parse --show-toplevel 2021-03-13 15:28:58 - INFO - /tmp/pytest-of-debci/pytest-0/test_layers_exclude0/test_layers$ git rev-parse --show-toplevel 2021-03-13 15:28:58 - INFO - /tmp/pytest-of-debci/pytest-0/test_layers_exclude0/test_layers$ git rev-parse --show-toplevel 2021-03-13 15:28:58 - INFO - /tmp/pytest-of-debci/pytest-0/test_layers_exclude0/test_layers$ git rev-parse --show-toplevel 2021-03-13 15:28:58 - INFO - /tmp/pytest-of-debci/pytest-0/test_layers_exclude0/test_layers$ git rev-parse --show-toplevel 2021-03-13 15:28:58 - INFO - /tmp/pytest-of-debci/pytest-0/test_layers_exclude0/test_layers$ git rev-parse --show-toplevel 2021-03-13 15:28:58 - INFO - /tmp/pytest-of-debci/pytest-0/test_layers_exclude0/test_layers$ hg root 2021-03-13 15:28:58 - INFO - /tmp/pytest-of-debci/pytest-0/test_layers_exclude0/test_layers$ hg root 2021-03-13 15:28:58 - INFO - /tmp/pytest-of-debci/pytest-0/test_layers_exclude0/test_layers$ hg root 2021-03-13 15:28:58 - INFO - /tmp/pytest-of-debci/pytest-0/test_layers_exclude0/test_layers$ hg root 2021-03-13 15:28:58 - INFO - /tmp/pytest-of-debci/pytest-0/test_layers_exclude0/test_layers$ hg root 2021-03-13 15:28:58 - INFO - /tmp/pytest-of-debci/pytest-0/test_layers_exclude0/test_layers$ hg root 2021-03-13 15:28:58 - INFO - /tmp/pytest-of-debci/pytest-0/test_layers_exclude0/test_layers$ hg root 2021-03-13 15:28:58 - INFO - /tmp/pytest-of-debci/pytest-0/test_layers_exclude0/test_layers$ hg root 2021-03-13 15:28:58 - INFO - /tmp/pytest-of-debci/pytest-0/test_layers_exclude0/test_layers$ git rev-parse --show-toplevel 2021-03-13 15:28:58 - INFO - /tmp/pytest-of-debci/pytest-0/test_layers_exclude0/test_layers$ git rev-parse --show-toplevel 2021-03-13 15:28:58 - INFO - /tmp/pytest-of-debci/pytest-0/test_layers_exclude0/test_layers$ git rev-parse --show-toplevel 2021-03-13 15:28:58 - INFO - /tmp/pytest-of-debci/pytest-0/test_layers_exclude0/test_layers$ git rev-parse --show-toplevel 2021-03-13 15:28:58 - INFO - /tmp/pytest-of-debci/pytest-0/test_layers_exclude0/test_layers$ git rev-parse --show-toplevel 2021-03-13 15:28:58 - INFO - /tmp/pytest-of-debci/pytest-0/test_layers_exclude0/test_layers$ git rev-parse --show-toplevel 2021-03-13 15:28:58 - INFO - /tmp/pytest-of-debci/pytest-0/test_layers_exclude0/test_layers$ git rev-parse --show-toplevel 2021-03-13 15:28:58 - INFO - /tmp/pytest-of-debci/pytest-0/test_layers_exclude0/test_layers$ git rev-parse --show-toplevel 2021-03-13 15:28:58 - INFO - /tmp/pytest-of-debci/pytest-0/test_layers_exclude0/test_layers$ hg root 2021-03-13 15:28:58 - INFO - /tmp/pytest-of-debci/pytest-0/test_layers_exclude0/test_layers$ hg root 2021-03-13 15:28:58 - INFO - /tmp/pytest-of-debci/pytest-0/test_layers_exclude0/test_layers$ hg root 2021-03-13 15:28:58 - INFO - /tmp/pytest-of-debci/pytest-0/test_layers_exclude0/test_layers$ hg root 2021-03-13 15:28:58 - INFO - /tmp/pytest-of-debci/pytest-0/test_layers_exclude0/test_layers$ hg root 2021-03-13 15:28:58 - INFO - /tmp/pytest-of-debci/pytest-0/test_layers_exclude0/test_layers$ hg root 2021-03-13 15:28:58 - INFO - /tmp/pytest-of-debci/pytest-0/test_layers_exclude0/test_layers$ hg root 2021-03-13 15:28:58 - INFO - /tmp/pytest-of-debci/pytest-0/test_layers_exclude0/test_layers$ hg root 2021-03-13 15:28:58 - INFO - Using /tmp/pytest-of-debci/pytest-0/test_layers_exclude0/test_layers as root for repository this 2021-03-13 15:28:58 - INFO - Using /tmp/pytest-of-debci/pytest-0/test_layers_exclude0/test_layers as root for repository this 2021-03-13 15:28:58 - INFO - Using /tmp/pytest-of-debci/pytest-0/test_layers_exclude0/test_layers as root for repository this 2021-03-13 15:28:58 - INFO - Using /tmp/pytest-of-debci/pytest-0/test_layers_exclude0/test_layers as root for repository this 2021-03-13 15:28:58 - INFO - Using /tmp/pytest-of-debci/pytest-0/test_layers_exclude0/test_layers as root for repository this 2021-03-13 15:28:58 - INFO - Using /tmp/pytest-of-debci/pytest-0/test_layers_exclude0/test_layers as root for repository this 2021-03-13 15:28:58 - INFO - Using /tmp/pytest-of-debci/pytest-0/test_layers_exclude0/test_layers as root for repository this 2021-03-13 15:28:58 - INFO - Using /tmp/pytest-of-debci/pytest-0/test_layers_exclude0/test_layers as root for repository this 2021-03-13 15:28:58 - INFO - /tmp/pytest-of-debci/pytest-0/test_layers_exclude0/test_layers$ git clone -q https://github.com/siemens/kas.git /tmp/pytest-of-debci/pytest-0/test_layers_exclude0/test_layers/kas 2021-03-13 15:28:58 - INFO - /tmp/pytest-of-debci/pytest-0/test_layers_exclude0/test_layers$ git clone -q https://github.com/siemens/kas.git /tmp/pytest-of-debci/pytest-0/test_layers_exclude0/test_layers/kas 2021-03-13 15:28:58 - INFO - /tmp/pytest-of-debci/pytest-0/test_layers_exclude0/test_layers$ git clone -q https://github.com/siemens/kas.git /tmp/pytest-of-debci/pytest-0/test_layers_exclude0/test_layers/kas 2021-03-13 15:28:58 - INFO - /tmp/pytest-of-debci/pytest-0/test_layers_exclude0/test_layers$ git clone -q https://github.com/siemens/kas.git /tmp/pytest-of-debci/pytest-0/test_layers_exclude0/test_layers/kas 2021-03-13 15:28:58 - INFO - /tmp/pytest-of-debci/pytest-0/test_layers_exclude0/test_layers$ git clone -q https://github.com/siemens/kas.git /tmp/pytest-of-debci/pytest-0/test_layers_exclude0/test_layers/kas 2021-03-13 15:28:58 - INFO - /tmp/pytest-of-debci/pytest-0/test_layers_exclude0/test_layers$ git clone -q https://github.com/siemens/kas.git /tmp/pytest-of-debci/pytest-0/test_layers_exclude0/test_layers/kas 2021-03-13 15:28:58 - INFO - /tmp/pytest-of-debci/pytest-0/test_layers_exclude0/test_layers$ git clone -q https://github.com/siemens/kas.git /tmp/pytest-of-debci/pytest-0/test_layers_exclude0/test_layers/kas 2021-03-13 15:28:58 - INFO - /tmp/pytest-of-debci/pytest-0/test_layers_exclude0/test_layers$ git clone -q https://github.com/siemens/kas.git /tmp/pytest-of-debci/pytest-0/test_layers_exclude0/test_layers/kas 2021-03-13 15:28:58 - INFO - /tmp/pytest-of-debci/pytest-0/test_layers_exclude0/test_layers$ git clone -q https://github.com/siemens/kas.git /tmp/pytest-of-debci/pytest-0/test_layers_exclude0/test_layers/kas1 2021-03-13 15:28:58 - INFO - /tmp/pytest-of-debci/pytest-0/test_layers_exclude0/test_layers$ git clone -q https://github.com/siemens/kas.git /tmp/pytest-of-debci/pytest-0/test_layers_exclude0/test_layers/kas1 2021-03-13 15:28:58 - INFO - /tmp/pytest-of-debci/pytest-0/test_layers_exclude0/test_layers$ git clone -q https://github.com/siemens/kas.git /tmp/pytest-of-debci/pytest-0/test_layers_exclude0/test_layers/kas1 2021-03-13 15:28:58 - INFO - /tmp/pytest-of-debci/pytest-0/test_layers_exclude0/test_layers$ git clone -q https://github.com/siemens/kas.git /tmp/pytest-of-debci/pytest-0/test_layers_exclude0/test_layers/kas1 2021-03-13 15:28:58 - INFO - /tmp/pytest-of-debci/pytest-0/test_layers_exclude0/test_layers$ git clone -q https://github.com/siemens/kas.git /tmp/pytest-of-debci/pytest-0/test_layers_exclude0/test_layers/kas1 2021-03-13 15:28:58 - INFO - /tmp/pytest-of-debci/pytest-0/test_layers_exclude0/test_layers$ git clone -q https://github.com/siemens/kas.git /tmp/pytest-of-debci/pytest-0/test_layers_exclude0/test_layers/kas1 2021-03-13 15:28:58 - INFO - /tmp/pytest-of-debci/pytest-0/test_layers_exclude0/test_layers$ git clone -q https://github.com/siemens/kas.git /tmp/pytest-of-debci/pytest-0/test_layers_exclude0/test_layers/kas1 2021-03-13 15:28:58 - INFO - /tmp/pytest-of-debci/pytest-0/test_layers_exclude0/test_layers$ git clone -q https://github.com/siemens/kas.git /tmp/pytest-of-debci/pytest-0/test_layers_exclude0/test_layers/kas1 2021-03-13 15:28:58 - INFO - /tmp/pytest-of-debci/pytest-0/test_layers_exclude0/test_layers$ git clone -q https://github.com/siemens/kas.git /tmp/pytest-of-debci/pytest-0/test_layers_exclude0/test_layers/kas2 2021-03-13 15:28:58 - INFO - /tmp/pytest-of-debci/pytest-0/test_layers_exclude0/test_layers$ git clone -q https://github.com/siemens/kas.git /tmp/pytest-of-debci/pytest-0/test_layers_exclude0/test_layers/kas2 2021-03-13 15:28:58 - INFO - /tmp/pytest-of-debci/pytest-0/test_layers_exclude0/test_layers$ git clone -q https://github.com/siemens/kas.git /tmp/pytest-of-debci/pytest-0/test_layers_exclude0/test_layers/kas2 2021-03-13 15:28:58 - INFO - /tmp/pytest-of-debci/pytest-0/test_layers_exclude0/test_layers$ git clone -q https://github.com/siemens/kas.git /tmp/pytest-of-debci/pytest-0/test_layers_exclude0/test_layers/kas2 2021-03-13 15:28:58 - INFO - /tmp/pytest-of-debci/pytest-0/test_layers_exclude0/test_layers$ git clone -q https://github.com/siemens/kas.git /tmp/pytest-of-debci/pytest-0/test_layers_exclude0/test_layers/kas2 2021-03-13 15:28:58 - INFO - /tmp/pytest-of-debci/pytest-0/test_layers_exclude0/test_layers$ git clone -q https://github.com/siemens/kas.git /tmp/pytest-of-debci/pytest-0/test_layers_exclude0/test_layers/kas2 2021-03-13 15:28:58 - INFO - /tmp/pytest-of-debci/pytest-0/test_layers_exclude0/test_layers$ git clone -q https://github.com/siemens/kas.git /tmp/pytest-of-debci/pytest-0/test_layers_exclude0/test_layers/kas2 2021-03-13 15:28:58 - INFO - /tmp/pytest-of-debci/pytest-0/test_layers_exclude0/test_layers$ git clone -q https://github.com/siemens/kas.git /tmp/pytest-of-debci/pytest-0/test_layers_exclude0/test_layers/kas2 2021-03-13 15:28:59 - INFO - Repository kas1 cloned 2021-03-13 15:28:59 - INFO - Repository kas1 cloned 2021-03-13 15:28:59 - INFO - Repository kas1 cloned 2021-03-13 15:28:59 - INFO - Repository kas1 cloned 2021-03-13 15:28:59 - INFO - Repository kas1 cloned 2021-03-13 15:28:59 - INFO - Repository kas1 cloned 2021-03-13 15:28:59 - INFO - Repository kas1 cloned 2021-03-13 15:28:59 - INFO - Repository kas1 cloned 2021-03-13 15:29:00 - INFO - Repository kas2 cloned 2021-03-13 15:29:00 - INFO - Repository kas2 cloned 2021-03-13 15:29:00 - INFO - Repository kas2 cloned 2021-03-13 15:29:00 - INFO - Repository kas2 cloned 2021-03-13 15:29:00 - INFO - Repository kas2 cloned 2021-03-13 15:29:00 - INFO - Repository kas2 cloned 2021-03-13 15:29:00 - INFO - Repository kas2 cloned 2021-03-13 15:29:00 - INFO - Repository kas2 cloned 2021-03-13 15:41:12 - ERROR - fatal: unable to access 'https://github.com/siemens/kas.git/': GnuTLS recv error (-54): Error in the pull function. 2021-03-13 15:41:12 - ERROR - fatal: unable to access 'https://github.com/siemens/kas.git/': GnuTLS recv error (-54): Error in the pull function. 2021-03-13 15:41:12 - ERROR - fatal: unable to access 'https://github.com/siemens/kas.git/': GnuTLS recv error (-54): Error in the pull function. 2021-03-13 15:41:12 - ERROR - fatal: unable to access 'https://github.com/siemens/kas.git/': GnuTLS recv error (-54): Error in the pull function. 2021-03-13 15:41:12 - ERROR - fatal: unable to access 'https://github.com/siemens/kas.git/': GnuTLS recv error (-54): Error in the pull function. 2021-03-13 15:41:12 - ERROR - fatal: unable to access 'https://github.com/siemens/kas.git/': GnuTLS recv error (-54): Error in the pull function. 2021-03-13 15:41:12 - ERROR - fatal: unable to access 'https://github.com/siemens/kas.git/': GnuTLS recv error (-54): Error in the pull function. 2021-03-13 15:41:12 - ERROR - fatal: unable to access 'https://github.com/siemens/kas.git/': GnuTLS recv error (-54): Error in the pull function. 2021-03-13 15:41:12 - ERROR - Command "/tmp/pytest-of-debci/pytest-0/test_layers_exclude0/test_layers$ git clone -q https://github.com/siemens/kas.git /tmp/pytest-of-debci/pytest-0/test_layers_exclude0/test_layers/kas" failed --- Error summary --- fatal: unable to access 'https://github.com/siemens/kas.git/': GnuTLS recv error (-54): Error in the pull function. 2021-03-13 15:41:12 - ERROR - Command "/tmp/pytest-of-debci/pytest-0/test_layers_exclude0/test_layers$ git clone -q https://github.com/siemens/kas.git /tmp/pytest-of-debci/pytest-0/test_layers_exclude0/test_layers/kas" failed --- Error summary --- fatal: unable to access 'https://github.com/siemens/kas.git/': GnuTLS recv error (-54): Error in the pull function. 2021-03-13 15:41:12 - ERROR - Command "/tmp/pytest-of-debci/pytest-0/test_layers_exclude0/test_layers$ git clone -q https://github.com/siemens/kas.git /tmp/pytest-of-debci/pytest-0/test_layers_exclude0/test_layers/kas" failed --- Error summary --- fatal: unable to access 'https://github.com/siemens/kas.git/': GnuTLS recv error (-54): Error in the pull function. 2021-03-13 15:41:12 - ERROR - Command "/tmp/pytest-of-debci/pytest-0/test_layers_exclude0/test_layers$ git clone -q https://github.com/siemens/kas.git /tmp/pytest-of-debci/pytest-0/test_layers_exclude0/test_layers/kas" failed --- Error summary --- fatal: unable to access 'https://github.com/siemens/kas.git/': GnuTLS recv error (-54): Error in the pull function. 2021-03-13 15:41:12 - ERROR - Command "/tmp/pytest-of-debci/pytest-0/test_layers_exclude0/test_layers$ git clone -q https://github.com/siemens/kas.git /tmp/pytest-of-debci/pytest-0/test_layers_exclude0/test_layers/kas" failed --- Error summary --- fatal: unable to access 'https://github.com/siemens/kas.git/': GnuTLS recv error (-54): Error in the pull function. 2021-03-13 15:41:12 - ERROR - Command "/tmp/pytest-of-debci/pytest-0/test_layers_exclude0/test_layers$ git clone -q https://github.com/siemens/kas.git /tmp/pytest-of-debci/pytest-0/test_layers_exclude0/test_layers/kas" failed --- Error summary --- fatal: unable to access 'https://github.com/siemens/kas.git/': GnuTLS recv error (-54): Error in the pull function. 2021-03-13 15:41:12 - ERROR - Command "/tmp/pytest-of-debci/pytest-0/test_layers_exclude0/test_layers$ git clone -q https://github.com/siemens/kas.git /tmp/pytest-of-debci/pytest-0/test_layers_exclude0/test_layers/kas" failed --- Error summary --- fatal: unable to access 'https://github.com/siemens/kas.git/': GnuTLS recv error (-54): Error in the pull function. 2021-03-13 15:41:12 - ERROR - Command "/tmp/pytest-of-debci/pytest-0/test_layers_exclude0/test_layers$ git clone -q https://github.com/siemens/kas.git /tmp/pytest-of-debci/pytest-0/test_layers_exclude0/test_layers/kas" failed --- Error summary --- fatal: unable to access 'https://github.com/siemens/kas.git/': GnuTLS recv error (-54): Error in the pull function. ------------------------------ Captured log setup ------------------------------ INFO root:kas.py:160 pytest-3 2.3.3 started INFO root:libkas.py:92 /tmp/pytest-of-debci/pytest-0/test_layers_exclude0/test_layers$ git rev-parse --show-toplevel INFO root:libkas.py:92 /tmp/pytest-of-debci/pytest-0/test_layers_exclude0/test_layers$ hg root INFO root:libkas.py:92 /tmp/pytest-of-debci/pytest-0/test_layers_exclude0/test_layers$ git rev-parse --show-toplevel INFO root:libkas.py:92 /tmp/pytest-of-debci/pytest-0/test_layers_exclude0/test_layers$ hg root INFO root:repos.py:121 Using /tmp/pytest-of-debci/pytest-0/test_layers_exclude0/test_layers as root for repository this INFO root:libkas.py:92 /tmp/pytest-of-debci/pytest-0/test_layers_exclude0/test_layers$ git clone -q https://github.com/siemens/kas.git /tmp/pytest-of-debci/pytest-0/test_layers_exclude0/test_layers/kas INFO root:libkas.py:92 /tmp/pytest-of-debci/pytest-0/test_layers_exclude0/test_layers$ git clone -q https://github.com/siemens/kas.git /tmp/pytest-of-debci/pytest-0/test_layers_exclude0/test_layers/kas1 INFO root:libkas.py:92 /tmp/pytest-of-debci/pytest-0/test_layers_exclude0/test_layers$ git clone -q https://github.com/siemens/kas.git /tmp/pytest-of-debci/pytest-0/test_layers_exclude0/test_layers/kas2 INFO root:repos.py:182 Repository kas1 cloned INFO root:repos.py:182 Repository kas2 cloned ERROR root:libkas.py:63 fatal: unable to access 'https://github.com/siemens/kas.git/': GnuTLS recv error (-54): Error in the pull function. ERROR root:libkas.py:125 Command "/tmp/pytest-of-debci/pytest-0/test_layers_exclude0/test_layers$ git clone -q https://github.com/siemens/kas.git /tmp/pytest-of-debci/pytest-0/test_layers_exclude0/test_layers/kas" failed --- Error summary --- fatal: unable to access 'https://github.com/siemens/kas.git/': GnuTLS recv error (-54): Error in the pull function. =================================== FAILURES =================================== __________________________________ test_patch __________________________________ changedir = None, tmpdir = local('/tmp/pytest-of-debci/pytest-0/test_patch0') def test_patch(changedir, tmpdir): tdir = str(tmpdir.mkdir('test_patch')) shutil.rmtree(tdir, ignore_errors=True) > shutil.copytree('tests/test_patch', tdir) /tmp/autopkgtest-lxc.0hdiftco/downtmp/build.oPh/src/tests/test_patch.py:32: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ src = 'tests/test_patch' dst = '/tmp/pytest-of-debci/pytest-0/test_patch0/test_patch', symlinks = False ignore = None, copy_function = <function copy2 at 0xffff8f09bee0> ignore_dangling_symlinks = False, dirs_exist_ok = False def copytree(src, dst, symlinks=False, ignore=None, copy_function=copy2, ignore_dangling_symlinks=False, dirs_exist_ok=False): """Recursively copy a directory tree and return the destination directory. dirs_exist_ok dictates whether to raise an exception in case dst or any missing parent directory already exists. If exception(s) occur, an Error is raised with a list of reasons. If the optional symlinks flag is true, symbolic links in the source tree result in symbolic links in the destination tree; if it is false, the contents of the files pointed to by symbolic links are copied. If the file pointed by the symlink doesn't exist, an exception will be added in the list of errors raised in an Error exception at the end of the copy process. You can set the optional ignore_dangling_symlinks flag to true if you want to silence this exception. Notice that this has no effect on platforms that don't support os.symlink. The optional ignore argument is a callable. If given, it is called with the `src` parameter, which is the directory being visited by copytree(), and `names` which is the list of `src` contents, as returned by os.listdir(): callable(src, names) -> ignored_names Since copytree() is called recursively, the callable will be called once for each directory that is copied. It returns a list of names relative to the `src` directory that should not be copied. The optional copy_function argument is a callable that will be used to copy each file. It will be called with the source path and the destination path as arguments. By default, copy2() is used, but any function that supports the same signature (like copy()) can be used. """ sys.audit("shutil.copytree", src, dst) > with os.scandir(src) as itr: E FileNotFoundError: [Errno 2] No such file or directory: 'tests/test_patch' /usr/lib/python3.9/shutil.py:555: FileNotFoundError =========================== short test summary info ============================ FAILED tests/test_patch.py::test_patch - FileNotFoundError: [Errno 2] No such... ERROR tests/test_layers.py::test_layers_exclude - SystemExit: 128
OpenPGP_signature
Description: OpenPGP digital signature