Hi all (esp. doko and Colin), (pls Cc: me when replying, thanks)(mail resent, now with debian-python ML in Cc:, please reply to this mail, so discussion ends on the list, thanks)
as part of my work for the UBports Foundation, I am currently working on getting software components of Ubuntu Touch to Debian. One of those comment is the src:pkg click (one of Colin's former upstream projects).
We see various test failures recently when running unit tests of click against Python 3.10. It seems that something regarding file descriptor inheritance in subprocess calls has changed between Python 3.9 and Python 3.10 which I fail to pinpoint exactly.
At the end of the mail you find a build log excerpt where you can see that the unit test script loops over python3.9 and python3 (aka python3.10 in unstable) when running the unit tests. Whereas tests under python3.9 succeed (first block of test results), tests under python3(.10) fail (second block of test results).
The reported errors all resemble this pattern: ```test_install (click_package.tests.test_install.TestClickInstaller) ... b'ERROR:root:[\'dpkg\', \'--force-not-root\', \'--force-bad-path\', \'--force-architecture\', \'--instdir\', \'/tmp/click9a_gafth/root/test-package/1.0\', \'--admindir\', \'/tmp/click9a_gafth/root/test-package/1.0/.click\', \'--path-exclude\', \'*/.click/*\', \'--log\', \'/tmp/click9a_gafth/root/.click/log\', \'--no-triggers\', \'--install\', \'/tmp/click9a_gafth/fake-package.click\'] failed with exit_code 1:\ndpkg-split: error: failed to read archive \'/tmp/click9a_gafth/fake-package.click\': Bad file descriptor\ndpkg: error processing archive /tmp/click9a_gafth/fake-package.click (--install):\n subprocess dpkg-split returned error exit status 2\nErrors were encountered while processing:\n /tmp/click9a_gafth/fake-package.click\n\nTraceback (most recent call last):\n File "/<<PKGBUILDDIR>>/click_package/tests/gimock.py", line 497, in run_in_subprocess\n yield partial(helper, lib_path, rpreloads), preloads\n File "/<<PKGBUILDDIR>>/click_package/tests/test_install.py", line 476, in test_install\n installer.install(path)\n File "/<<PKGBUILDDIR>>/click_package/install.py", line 462, in install\n package_name, package_version, old_version = self._unpack(\n File "/<<PKGBUILDDIR>>/click_package/install.py", line 416, in _unpack\n fn(command,\n File "/usr/lib/python3.10/subprocess.py", line 420, in check_output\n return run(*popenargs, stdout=PIPE, timeout=timeout, check=True,\n File "/usr/lib/python3.10/subprocess.py", line 524, in run\n raise CalledProcessError(retcode, process.args,\nsubprocess.CalledProcessError: Command \'[\'dpkg\', \'--force-not-root\', \'--force-bad-path\', \'--force-architecture\', \'--instdir\', \'/tmp/click9a_gafth/root/test-package/1.0\', \'--admindir\', \'/tmp/click9a_gafth/root/test-package/1.0/.click\', \'--path-exclude\', \'*/.click/*\', \'--log\', \'/tmp/click9a_gafth/root/.click/log\', \'--no-triggers\', \'--install\', \'/tmp/click9a_gafth/fake-package.click\']\' returned non-zero exit status 1.\n'
ERROR ``` The core information in above error output is: ```dpkg-split: error: failed to read archive '/tmp/click9a_gafth/fake-package.click': Bad file descriptor dpkg: error processing archive /tmp/click9a_gafth/fake-package.click (--install):
subprocess dpkg-split returned error exit status 2 ```I am suspecting some FD handover in click's install.py for being the point where something fails, but I am unsure. And why does fail in Python 3.10, but not in 3.9?
https://gitlab.com/ubports/core/click/-/blob/main/click_package/install.py#L397Also I found a comment by Colin that might be related (but why only with Python 3.10??):
https://gitlab.com/ubports/core/click/-/blob/main/preload/clickpreload.c#L298Does anyone have a spontaneous idea what might be causing the observed test failures under Python 3.10? Maybe someone can point me to a commit in Python upstream where things in subprocess might have started to change? Any help is greatly appreciated!!!
Thanks, Mike ``` make check-local make[3]: Entering directory '/<<PKGBUILDDIR>>' set -e; for python in python3.9 python3; do \ $python setup.py test; \ done/usr/lib/python3/dist-packages/setuptools/dist.py:493: UserWarning: Normalizing '0.5.0-6' to '0.5.0.post6'
warnings.warn(tmpl.format(**locals())) running testWARNING: Testing via this command is deprecated and will be removed in a future version. Users looking for a generic test entry point independent of test runner are encouraged to use tox.
running egg_info creating click.egg-info writing click.egg-info/PKG-INFO writing dependency_links to click.egg-info/dependency_links.txt writing top-level names to click.egg-info/top_level.txt writing manifest file 'click.egg-info/SOURCES.txt' reading manifest file 'click.egg-info/SOURCES.txt' reading manifest template 'MANIFEST.in' adding license file 'LICENSE' writing manifest file 'click.egg-info/SOURCES.txt' running build_ext/usr/lib/python3/dist-packages/setuptools/dist.py:493: UserWarning: Normalizing '0.5.0-6' to '0.5.0.post6'
warnings.warn(tmpl.format(**locals())) running testWARNING: Testing via this command is deprecated and will be removed in a future version. Users looking for a generic test entry point independent of test runner are encouraged to use tox.
running egg_info writing click.egg-info/PKG-INFO writing dependency_links to click.egg-info/dependency_links.txt writing top-level names to click.egg-info/top_level.txt reading manifest file 'click.egg-info/SOURCES.txt' reading manifest template 'MANIFEST.in' adding license file 'LICENSE' writing manifest file 'click.egg-info/SOURCES.txt' running build_exttest_hook_name_absent (click_package.tests.test_hooks.TestClickHookSystemLevel) ... ok test_hook_name_present (click_package.tests.test_hooks.TestClickHookSystemLevel) ... ok
test_install (click_package.tests.test_hooks.TestClickHookSystemLevel) ... oktest_install_package (click_package.tests.test_hooks.TestClickHookSystemLevel) ... ok test_install_package_trailing_slash (click_package.tests.test_hooks.TestClickHookSystemLevel) ... ok test_install_package_uses_deepest_copy (click_package.tests.test_hooks.TestClickHookSystemLevel) ... ok test_invalid_app_id (click_package.tests.test_hooks.TestClickHookSystemLevel) ... ok
test_open (click_package.tests.test_hooks.TestClickHookSystemLevel) ... oktest_open_unopenable_file (click_package.tests.test_hooks.TestClickHookSystemLevel) ... ok
test_remove (click_package.tests.test_hooks.TestClickHookSystemLevel) ... oktest_remove_package (click_package.tests.test_hooks.TestClickHookSystemLevel) ... ok test_run_commands (click_package.tests.test_hooks.TestClickHookSystemLevel) ... ok test_run_commands_fail (click_package.tests.test_hooks.TestClickHookSystemLevel) ... ok test_short_id_invalid (click_package.tests.test_hooks.TestClickHookSystemLevel) ... ok test_short_id_valid_with_single_version (click_package.tests.test_hooks.TestClickHookSystemLevel) ... ok
test_sync (click_package.tests.test_hooks.TestClickHookSystemLevel) ... ok test_upgrade (click_package.tests.test_hooks.TestClickHookSystemLevel) ... oktest_hook_name_absent (click_package.tests.test_hooks.TestClickHookUserLevel) ... ok test_hook_name_present (click_package.tests.test_hooks.TestClickHookUserLevel) ... ok
test_install (click_package.tests.test_hooks.TestClickHookUserLevel) ... oktest_install_package (click_package.tests.test_hooks.TestClickHookUserLevel) ... ok test_install_package_removes_previous (click_package.tests.test_hooks.TestClickHookUserLevel) ... ok test_install_package_trailing_slash (click_package.tests.test_hooks.TestClickHookUserLevel) ... ok test_invalid_app_id (click_package.tests.test_hooks.TestClickHookUserLevel) ... ok
test_open (click_package.tests.test_hooks.TestClickHookUserLevel) ... ok test_remove (click_package.tests.test_hooks.TestClickHookUserLevel) ... oktest_remove_package (click_package.tests.test_hooks.TestClickHookUserLevel) ... ok test_run_commands (click_package.tests.test_hooks.TestClickHookUserLevel) ... ok test_run_commands_fail (click_package.tests.test_hooks.TestClickHookUserLevel) ... ok test_short_id_valid (click_package.tests.test_hooks.TestClickHookUserLevel) ... ok
test_sync (click_package.tests.test_hooks.TestClickHookUserLevel) ... oktest_sync_uses_deepest_copy (click_package.tests.test_hooks.TestClickHookUserLevel) ... ok test_sync_without_user_db (click_package.tests.test_hooks.TestClickHookUserLevel) ... ok
test_upgrade (click_package.tests.test_hooks.TestClickHookUserLevel) ... oktest_double_dollar (click_package.tests.test_hooks.TestClickPatternFormatter) ... ok test_expands_missing_keys_to_empty_string (click_package.tests.test_hooks.TestClickPatternFormatter) ... ok test_expands_provided_keys (click_package.tests.test_hooks.TestClickPatternFormatter) ... ok test_possible_expansion (click_package.tests.test_hooks.TestClickPatternFormatter) ... ok test_preserves_unmatched_dollar (click_package.tests.test_hooks.TestClickPatternFormatter) ... ok test_links_are_kept_multiple_frameworks (click_package.tests.test_hooks.TestPackageHooksValidateFramework) ... ok test_links_are_kept_on_validate_framework (click_package.tests.test_hooks.TestPackageHooksValidateFramework) ... ok test_links_are_removed_on_missing_framework (click_package.tests.test_hooks.TestPackageHooksValidateFramework) ... ok test_links_are_removed_on_missing_multiple_framework (click_package.tests.test_hooks.TestPackageHooksValidateFramework) ... ok test_installs_new_hooks (click_package.tests.test_hooks.TestPackageInstallHooks) ... ok test_removes_old_hooks (click_package.tests.test_hooks.TestPackageInstallHooks) ... ok test_upgrades_existing_hooks (click_package.tests.test_hooks.TestPackageInstallHooks) ... ok test_removes_hooks (click_package.tests.test_hooks.TestPackageRemoveHooks) ... ok
test_init_fileobj (click_package.tests.test_arfile.TestArFile) ... ok test_init_name (click_package.tests.test_arfile.TestArFile) ... ok test_init_rejects_mode_r (click_package.tests.test_arfile.TestArFile) ... oktest_init_rejects_readonly_fileobj (click_package.tests.test_arfile.TestArFile) ... ok
test_writes_valid_ar_file (click_package.tests.test_arfile.TestArFile) ... ok test_find_package_directory (click_package.tests.test_query.TestQuery) ... oktest_find_package_directory_missing (click_package.tests.test_query.TestQuery) ... ok test_find_package_directory_outside (click_package.tests.test_query.TestQuery) ... ok
test_get_db_dir (click_package.tests.test_paths.TestClickPaths) ... ok test_get_frameworks_dir (click_package.tests.test_paths.TestClickPaths) ... ok test_get_hooks_dir (click_package.tests.test_paths.TestClickPaths) ... ok test_app_stops_on_remove (click_package.tests.test_user.StopAppTestCase) ...** (process:294239): WARNING **: 22:13:46.326: user.vala:637: Can not connect to logind
** (process:294239): WARNING **: 22:13:46.326: user.vala:672: Can not get the dbus session to stop app (Failed to open file “/run/user/1000/dbus-session”: No such file or directory)
** (process:294239): WARNING **: 22:13:46.330: user.vala:737: Error removing cache for 'meep': Error opening directory '/tmp/tmp8r6u_pyd/XDG_CACHE_HOME/meep': No such file or directory
oktest_ensure_db_chown_fails (click_package.tests.test_user.TestClickUser) ... ok test_ensure_db_getpwnam_fails (click_package.tests.test_user.TestClickUser) ... ok test_ensure_db_mkdir_fails (click_package.tests.test_user.TestClickUser) ... ok
test_ensure_db_ownership (click_package.tests.test_user.TestClickUser) ... ok test_get_manifest (click_package.tests.test_user.TestClickUser) ... oktest_get_manifest_multiple_root (click_package.tests.test_user.TestClickUser) ... ok
test_get_manifests (click_package.tests.test_user.TestClickUser) ... oktest_get_manifests_multiple_root (click_package.tests.test_user.TestClickUser) ... ** (process:294239): WARNING **: 22:13:47.434: user.vala:737: Error removing cache for 'b': Error opening directory '/tmp/tmp8r6u_pyd/XDG_CACHE_HOME/b': No such file or directory
ok test_get_overlay_db (click_package.tests.test_user.TestClickUser) ... ok test_get_package_names (click_package.tests.test_user.TestClickUser) ... oktest_get_package_names_missing (click_package.tests.test_user.TestClickUser) ... ok test_get_package_names_multiple_root (click_package.tests.test_user.TestClickUser) ... ok
test_get_path (click_package.tests.test_user.TestClickUser) ... oktest_get_path_multiple_root (click_package.tests.test_user.TestClickUser) ... ok
test_get_version (click_package.tests.test_user.TestClickUser) ... ok test_get_version_missing (click_package.tests.test_user.TestClickUser) ... oktest_get_version_multiple_root (click_package.tests.test_user.TestClickUser) ... ok
test_hidden (click_package.tests.test_user.TestClickUser) ...** (process:294239): WARNING **: 22:13:47.451: user.vala:737: Error removing cache for 'b': Error opening directory '/tmp/tmp8r6u_pyd/XDG_CACHE_HOME/b': No such file or directory
ok test_is_removable (click_package.tests.test_user.TestClickUser) ... oktest_is_removable_multiple_root (click_package.tests.test_user.TestClickUser) ... ok
test_new_db_not_directory (click_package.tests.test_user.TestClickUser) ... ok test_new_no_db (click_package.tests.test_user.TestClickUser) ... ok test_remove (click_package.tests.test_user.TestClickUser) ...** (process:294239): WARNING **: 22:13:48.173: user.vala:737: Error removing cache for 'a': Error opening directory '/tmp/tmp8r6u_pyd/XDG_CACHE_HOME/a': No such file or directory
ok test_remove_missing (click_package.tests.test_user.TestClickUser) ... ok test_remove_multiple_root (click_package.tests.test_user.TestClickUser) ...** (process:294239): WARNING **: 22:13:48.176: user.vala:737: Error removing cache for 'a': Error opening directory '/tmp/tmp8r6u_pyd/XDG_CACHE_HOME/a': No such file or directory
** (process:294239): WARNING **: 22:13:48.176: user.vala:737: Error removing cache for 'b': Error opening directory '/tmp/tmp8r6u_pyd/XDG_CACHE_HOME/b': No such file or directory
** (process:294239): WARNING **: 22:13:48.176: user.vala:737: Error removing cache for 'c': Error opening directory '/tmp/tmp8r6u_pyd/XDG_CACHE_HOME/c': No such file or directory
oktest_remove_multiple_root_creates_overlay_directory (click_package.tests.test_user.TestClickUser) ... ** (process:294239): WARNING **: 22:13:48.178: user.vala:737: Error removing cache for 'a': Error opening directory '/tmp/tmp8r6u_pyd/XDG_CACHE_HOME/a': No such file or directory
ok test_set_version_changed (click_package.tests.test_user.TestClickUser) ... ok test_set_version_missing (click_package.tests.test_user.TestClickUser) ... oktest_set_version_missing_target (click_package.tests.test_user.TestClickUser) ... ok test_set_version_multiple_root (click_package.tests.test_user.TestClickUser) ... ok test_set_version_restore_to_underlay (click_package.tests.test_user.TestClickUser) ... ok test_remove_does_not_follow_if_xdg_dir_is_symlink (click_package.tests.test_user.UserDataRemovalTestCase)
Ensure that if the user-cach dir is a symlink that symlink is ... oktest_remove_does_not_follow_symlinks_inside_dir (click_package.tests.test_user.UserDataRemovalTestCase)
Ensure that symlinks that are inside a user-data dir get removed, ... oktest_remove_removes_cache_only (click_package.tests.test_user.UserDataRemovalTestCase)
Ensure that app cache for user is removed if a click is removed ... ok test_scripts (click_package.tests.test_scripts.TestScripts) ... ok test_add (click_package.tests.test_database.TestClickDB) ... oktest_has_package_version (click_package.tests.test_database.TestClickDB) ... ok
test_manifest (click_package.tests.test_database.TestClickDB) ... ok test_manifest_bad (click_package.tests.test_database.TestClickDB) ... ok test_manifests_all (click_package.tests.test_database.TestClickDB) ... ok test_manifests_current (click_package.tests.test_database.TestClickDB) ... ok test_no_db_conf_errors (click_package.tests.test_database.TestClickDB) ... ok test_no_read (click_package.tests.test_database.TestClickDB) ... ok test_overlay (click_package.tests.test_database.TestClickDB) ... ok test_packages_all (click_package.tests.test_database.TestClickDB) ... ok test_packages_current (click_package.tests.test_database.TestClickDB) ... ok test_path (click_package.tests.test_database.TestClickDB) ... ok test_read_configuration (click_package.tests.test_database.TestClickDB) ... ok test_read_nonexistent (click_package.tests.test_database.TestClickDB) ... ok test_read_not_directory (click_package.tests.test_database.TestClickDB) ... oktest_equal_to (click_package.tests.test_database.TestClickInstalledPackage) ... expected failure
test_hash (click_package.tests.test_database.TestClickInstalledPackage) ... oktest_any_app_running_bad_manifest (click_package.tests.test_database.TestClickSingleDB) ... ok test_any_app_running_missing_app (click_package.tests.test_database.TestClickSingleDB) ... ok test_any_app_running_no_app_pid_command (click_package.tests.test_database.TestClickSingleDB) ... ok test_any_app_running_no_hooks (click_package.tests.test_database.TestClickSingleDB) ... ok test_any_app_running_ubuntu_app_pid (click_package.tests.test_database.TestClickSingleDB) ... ok
test_app_running (click_package.tests.test_database.TestClickSingleDB) ... oktest_ensure_ownership (click_package.tests.test_database.TestClickSingleDB) ... ok test_ensure_ownership_failed_chown (click_package.tests.test_database.TestClickSingleDB) ... ok test_ensure_ownership_missing_clickpkg_user (click_package.tests.test_database.TestClickSingleDB) ... ok test_ensure_ownership_quick_if_correct (click_package.tests.test_database.TestClickSingleDB) ... skipped 'See https://gitlab.com/ubports/core/click/-/issues/5'
test_gc (click_package.tests.test_database.TestClickSingleDB) ... oktest_gc_fixes_old_user_registrations (click_package.tests.test_database.TestClickSingleDB) ... ok test_gc_ignores_non_directory (click_package.tests.test_database.TestClickSingleDB) ... ok test_has_package_version (click_package.tests.test_database.TestClickSingleDB) ... ok
test_manifest (click_package.tests.test_database.TestClickSingleDB) ... ok test_manifest_bad (click_package.tests.test_database.TestClickSingleDB) ... oktest_maybe_remove_not_running (click_package.tests.test_database.TestClickSingleDB) ... ok test_maybe_remove_registered (click_package.tests.test_database.TestClickSingleDB) ... ok test_maybe_remove_running (click_package.tests.test_database.TestClickSingleDB) ... ok
test_packages_all (click_package.tests.test_database.TestClickSingleDB) ... oktest_packages_all_ignores_non_directory (click_package.tests.test_database.TestClickSingleDB) ... ok test_packages_current (click_package.tests.test_database.TestClickSingleDB) ... ok
test_path (click_package.tests.test_database.TestClickSingleDB) ... ok skipped 'Skipping integration tests' skipped 'Skipping integration tests' skipped 'Skipping integration tests' skipped 'Skipping integration tests' skipped 'Skipping integration tests' skipped 'Skipping integration tests' skipped 'Skipping integration tests' skipped 'Skipping integration tests' skipped 'Skipping integration tests' skipped 'Skipping integration tests' skipped 'Skipping integration tests' test_pep8_clean (click_package.tests.test_static.TestStatic) ... ok test_pyflakes_clean (click_package.tests.test_static.TestStatic) ... ok test_fields (click_package.tests.test_framework.TestClickFramework) ... oktest_get_frameworks (click_package.tests.test_framework.TestClickFramework) ... ok test_get_frameworks_ignores_other_files (click_package.tests.test_framework.TestClickFramework) ... ok test_get_frameworks_ignores_unopenable_files (click_package.tests.test_framework.TestClickFramework) ... ok test_get_frameworks_nonexistent (click_package.tests.test_framework.TestClickFramework) ... ok test_get_frameworks_not_directory (click_package.tests.test_framework.TestClickFramework) ... ok test_has_framework (click_package.tests.test_framework.TestClickFramework) ... ok
test_open (click_package.tests.test_framework.TestClickFramework) ... ok test_add_file (click_package.tests.test_build.TestClickBuilder) ... ok test_build (click_package.tests.test_build.TestClickBuilder) ... oktest_build_excludes_dot_click (click_package.tests.test_build.TestClickBuilder) ... ok test_build_ignore_pattern (click_package.tests.test_build.TestClickBuilder) ... WARNING:root:Ignoring missing framework "ubuntu-sdk-13.10"
oktest_build_multiple_architectures (click_package.tests.test_build.TestClickBuilder) ... ok test_build_multiple_frameworks (click_package.tests.test_build.TestClickBuilder) ... ok test_epochless_version (click_package.tests.test_build.TestClickBuilder) ... ok test_manifest_syntax_error (click_package.tests.test_build.TestClickBuilder) ... ok
test_read_manifest (click_package.tests.test_build.TestClickBuilder) ... oktest_validate_framework_bad (click_package.tests.test_build.TestClickFrameworkValidation) ... ok test_validate_framework_good (click_package.tests.test_build.TestClickFrameworkValidation) ... ok
test_add_file (click_package.tests.test_build.TestClickSourceBuilder) ... ok test_build (click_package.tests.test_build.TestClickSourceBuilder) ... oktest_epochless_version (click_package.tests.test_build.TestClickSourceBuilder) ... ok test_manifest_syntax_error (click_package.tests.test_build.TestClickSourceBuilder) ... ok test_read_manifest (click_package.tests.test_build.TestClickSourceBuilder) ... ok test_audit_bad_click_version (click_package.tests.test_install.TestClickInstaller) ... ok test_audit_broken_md5sums (click_package.tests.test_install.TestClickInstaller) ... ok test_audit_forbids_depends (click_package.tests.test_install.TestClickInstaller) ... ok test_audit_forbids_maintscript (click_package.tests.test_install.TestClickInstaller) ... ok test_audit_invalid_manifest_json (click_package.tests.test_install.TestClickInstaller) ... ok test_audit_matching_md5sums (click_package.tests.test_install.TestClickInstaller) ... ok test_audit_missing_dot_slash (click_package.tests.test_install.TestClickInstaller) ... ok test_audit_missing_framework (click_package.tests.test_install.TestClickInstaller) ... ok test_audit_missing_framework_force (click_package.tests.test_install.TestClickInstaller) ... ok test_audit_multiple_frameworks (click_package.tests.test_install.TestClickInstaller) ... ok test_audit_name_bad_character (click_package.tests.test_install.TestClickInstaller) ... ok test_audit_new_click_version (click_package.tests.test_install.TestClickInstaller) ... ok test_audit_no_click_version (click_package.tests.test_install.TestClickInstaller) ... ok test_audit_no_framework (click_package.tests.test_install.TestClickInstaller) ... ok test_audit_no_name (click_package.tests.test_install.TestClickInstaller) ... ok test_audit_no_signature (click_package.tests.test_install.TestClickInstaller) ... skipped 'this test needs debsig-verify' test_audit_no_version (click_package.tests.test_install.TestClickInstaller) ... ok test_audit_passes_correct_package (click_package.tests.test_install.TestClickInstaller) ... ok test_audit_requires_manifest (click_package.tests.test_install.TestClickInstaller) ... ok
test_install (click_package.tests.test_install.TestClickInstaller) ... oktest_multiple_architectures (click_package.tests.test_install.TestClickInstaller) ... ok test_no_write_permission (click_package.tests.test_install.TestClickInstaller) ... ok test_reinstall_preinstalled (click_package.tests.test_install.TestClickInstaller) ... ** (process:294239): WARNING **: 22:14:02.947: user.vala:637: Can not connect to logind
** (process:294239): WARNING **: 22:14:02.947: user.vala:737: Error removing cache for 'test-package': Error opening directory '/tmp/tmp8r6u_pyd/XDG_CACHE_HOME/test-package': No such file or directory
ok test_sandbox (click_package.tests.test_install.TestClickInstaller) ... oktest_single_architecture (click_package.tests.test_install.TestClickInstaller) ... ok
test_upgrade (click_package.tests.test_install.TestClickInstaller) ... oktest_world_readable (click_package.tests.test_install.TestClickInstaller) ... ok test_dir_open_error (click_package.tests.test_osextras.TestOSExtrasNative) ... ok test_dir_read_name_directory_missing (click_package.tests.test_osextras.TestOSExtrasNative) ... ok test_dir_read_name_directory_present (click_package.tests.test_osextras.TestOSExtrasNative) ... ok test_ensuredir_error (click_package.tests.test_osextras.TestOSExtrasNative) ... ok test_ensuredir_previously_missing (click_package.tests.test_osextras.TestOSExtrasNative) ... ok test_ensuredir_previously_present (click_package.tests.test_osextras.TestOSExtrasNative) ... ok test_find_on_path_missing_environment (click_package.tests.test_osextras.TestOSExtrasNative) ... ok test_find_on_path_present_executable (click_package.tests.test_osextras.TestOSExtrasNative) ... ok test_find_on_path_present_not_executable (click_package.tests.test_osextras.TestOSExtrasNative) ... ok test_find_on_path_requires_regular_file (click_package.tests.test_osextras.TestOSExtrasNative) ... ok test_symlink_error (click_package.tests.test_osextras.TestOSExtrasNative) ... ok test_symlink_file_present (click_package.tests.test_osextras.TestOSExtrasNative) ... ok test_symlink_link_present (click_package.tests.test_osextras.TestOSExtrasNative) ... ok test_symlink_missing (click_package.tests.test_osextras.TestOSExtrasNative) ... ok test_symlink_unlink_error (click_package.tests.test_osextras.TestOSExtrasNative) ... ok
test_umask (click_package.tests.test_osextras.TestOSExtrasNative) ... oktest_unlink_error (click_package.tests.test_osextras.TestOSExtrasNative) ... ok test_unlink_file_missing (click_package.tests.test_osextras.TestOSExtrasNative) ... ok test_unlink_file_present (click_package.tests.test_osextras.TestOSExtrasNative) ... ok test_ensuredir_oserror (click_package.tests.test_osextras.TestOSExtrasPython) ... ok test_ensuredir_previously_missing (click_package.tests.test_osextras.TestOSExtrasPython) ... ok test_ensuredir_previously_present (click_package.tests.test_osextras.TestOSExtrasPython) ... ok test_find_on_path_missing_environment (click_package.tests.test_osextras.TestOSExtrasPython) ... ok test_find_on_path_present_executable (click_package.tests.test_osextras.TestOSExtrasPython) ... ok test_find_on_path_present_not_executable (click_package.tests.test_osextras.TestOSExtrasPython) ... ok test_find_on_path_requires_regular_file (click_package.tests.test_osextras.TestOSExtrasPython) ... ok test_listdir_directory_missing (click_package.tests.test_osextras.TestOSExtrasPython) ... ok test_listdir_directory_present (click_package.tests.test_osextras.TestOSExtrasPython) ... ok test_listdir_oserror (click_package.tests.test_osextras.TestOSExtrasPython) ... ok test_symlink_file_present (click_package.tests.test_osextras.TestOSExtrasPython) ... ok test_symlink_link_present (click_package.tests.test_osextras.TestOSExtrasPython) ... ok test_symlink_missing (click_package.tests.test_osextras.TestOSExtrasPython) ... ok test_symlink_oserror (click_package.tests.test_osextras.TestOSExtrasPython) ... ok test_symlink_unlink_oserror (click_package.tests.test_osextras.TestOSExtrasPython) ... ok
test_umask (click_package.tests.test_osextras.TestOSExtrasPython) ... oktest_unlink_file_missing (click_package.tests.test_osextras.TestOSExtrasPython) ... ok test_unlink_file_present (click_package.tests.test_osextras.TestOSExtrasPython) ... ok test_unlink_oserror (click_package.tests.test_osextras.TestOSExtrasPython) ... ok
---------------------------------------------------------------------- Ran 225 tests in 31.610s OK (skipped=13, expected failures=1)/usr/lib/python3/dist-packages/setuptools/dist.py:493: UserWarning: Normalizing '0.5.0-6' to '0.5.0.post6'
warnings.warn(tmpl.format(**locals())) running testWARNING: Testing via this command is deprecated and will be removed in a future version. Users looking for a generic test entry point independent of test runner are encouraged to use tox. /usr/lib/python3/dist-packages/setuptools/installer.py:27: SetuptoolsDeprecationWarning: setuptools.installer is deprecated. Requirements should be satisfied by a PEP 517 installer.
warnings.warn( running egg_info writing click.egg-info/PKG-INFO writing dependency_links to click.egg-info/dependency_links.txt writing requirements to click.egg-info/requires.txt writing top-level names to click.egg-info/top_level.txt reading manifest file 'click.egg-info/SOURCES.txt' reading manifest template 'MANIFEST.in' adding license file 'LICENSE' writing manifest file 'click.egg-info/SOURCES.txt' running build_ext/usr/lib/python3/dist-packages/setuptools/dist.py:493: UserWarning: Normalizing '0.5.0-6' to '0.5.0.post6'
warnings.warn(tmpl.format(**locals())) running testWARNING: Testing via this command is deprecated and will be removed in a future version. Users looking for a generic test entry point independent of test runner are encouraged to use tox.
running egg_info writing click.egg-info/PKG-INFO writing dependency_links to click.egg-info/dependency_links.txt deleting click.egg-info/requires.txt writing top-level names to click.egg-info/top_level.txt reading manifest file 'click.egg-info/SOURCES.txt' reading manifest template 'MANIFEST.in' adding license file 'LICENSE' writing manifest file 'click.egg-info/SOURCES.txt' running build_exttest_hook_name_absent (click_package.tests.test_hooks.TestClickHookSystemLevel) ... ok test_hook_name_present (click_package.tests.test_hooks.TestClickHookSystemLevel) ... ok
test_install (click_package.tests.test_hooks.TestClickHookSystemLevel) ... oktest_install_package (click_package.tests.test_hooks.TestClickHookSystemLevel) ... ok test_install_package_trailing_slash (click_package.tests.test_hooks.TestClickHookSystemLevel) ... ok test_install_package_uses_deepest_copy (click_package.tests.test_hooks.TestClickHookSystemLevel) ... ok test_invalid_app_id (click_package.tests.test_hooks.TestClickHookSystemLevel) ... ok
test_open (click_package.tests.test_hooks.TestClickHookSystemLevel) ... oktest_open_unopenable_file (click_package.tests.test_hooks.TestClickHookSystemLevel) ... ok
test_remove (click_package.tests.test_hooks.TestClickHookSystemLevel) ... oktest_remove_package (click_package.tests.test_hooks.TestClickHookSystemLevel) ... ok test_run_commands (click_package.tests.test_hooks.TestClickHookSystemLevel) ... ok test_run_commands_fail (click_package.tests.test_hooks.TestClickHookSystemLevel) ... ok test_short_id_invalid (click_package.tests.test_hooks.TestClickHookSystemLevel) ... ok test_short_id_valid_with_single_version (click_package.tests.test_hooks.TestClickHookSystemLevel) ... ok
test_sync (click_package.tests.test_hooks.TestClickHookSystemLevel) ... ok test_upgrade (click_package.tests.test_hooks.TestClickHookSystemLevel) ... oktest_hook_name_absent (click_package.tests.test_hooks.TestClickHookUserLevel) ... ok test_hook_name_present (click_package.tests.test_hooks.TestClickHookUserLevel) ... ok
test_install (click_package.tests.test_hooks.TestClickHookUserLevel) ... oktest_install_package (click_package.tests.test_hooks.TestClickHookUserLevel) ... ok test_install_package_removes_previous (click_package.tests.test_hooks.TestClickHookUserLevel) ... ok test_install_package_trailing_slash (click_package.tests.test_hooks.TestClickHookUserLevel) ... ok test_invalid_app_id (click_package.tests.test_hooks.TestClickHookUserLevel) ... ok
test_open (click_package.tests.test_hooks.TestClickHookUserLevel) ... ok test_remove (click_package.tests.test_hooks.TestClickHookUserLevel) ... oktest_remove_package (click_package.tests.test_hooks.TestClickHookUserLevel) ... ok test_run_commands (click_package.tests.test_hooks.TestClickHookUserLevel) ... ok test_run_commands_fail (click_package.tests.test_hooks.TestClickHookUserLevel) ... ok test_short_id_valid (click_package.tests.test_hooks.TestClickHookUserLevel) ... ok
test_sync (click_package.tests.test_hooks.TestClickHookUserLevel) ... oktest_sync_uses_deepest_copy (click_package.tests.test_hooks.TestClickHookUserLevel) ... ok test_sync_without_user_db (click_package.tests.test_hooks.TestClickHookUserLevel) ... ok
test_upgrade (click_package.tests.test_hooks.TestClickHookUserLevel) ... oktest_double_dollar (click_package.tests.test_hooks.TestClickPatternFormatter) ... ok test_expands_missing_keys_to_empty_string (click_package.tests.test_hooks.TestClickPatternFormatter) ... ok test_expands_provided_keys (click_package.tests.test_hooks.TestClickPatternFormatter) ... ok test_possible_expansion (click_package.tests.test_hooks.TestClickPatternFormatter) ... ok test_preserves_unmatched_dollar (click_package.tests.test_hooks.TestClickPatternFormatter) ... ok test_links_are_kept_multiple_frameworks (click_package.tests.test_hooks.TestPackageHooksValidateFramework) ... ok test_links_are_kept_on_validate_framework (click_package.tests.test_hooks.TestPackageHooksValidateFramework) ... ok test_links_are_removed_on_missing_framework (click_package.tests.test_hooks.TestPackageHooksValidateFramework) ... ok test_links_are_removed_on_missing_multiple_framework (click_package.tests.test_hooks.TestPackageHooksValidateFramework) ... ok test_installs_new_hooks (click_package.tests.test_hooks.TestPackageInstallHooks) ... ok test_removes_old_hooks (click_package.tests.test_hooks.TestPackageInstallHooks) ... ok test_upgrades_existing_hooks (click_package.tests.test_hooks.TestPackageInstallHooks) ... ok test_removes_hooks (click_package.tests.test_hooks.TestPackageRemoveHooks) ... ok
test_init_fileobj (click_package.tests.test_arfile.TestArFile) ... ok test_init_name (click_package.tests.test_arfile.TestArFile) ... ok test_init_rejects_mode_r (click_package.tests.test_arfile.TestArFile) ... oktest_init_rejects_readonly_fileobj (click_package.tests.test_arfile.TestArFile) ... ok
test_writes_valid_ar_file (click_package.tests.test_arfile.TestArFile) ... ok test_find_package_directory (click_package.tests.test_query.TestQuery) ... oktest_find_package_directory_missing (click_package.tests.test_query.TestQuery) ... ok test_find_package_directory_outside (click_package.tests.test_query.TestQuery) ... ok
test_get_db_dir (click_package.tests.test_paths.TestClickPaths) ... ok test_get_frameworks_dir (click_package.tests.test_paths.TestClickPaths) ... ok test_get_hooks_dir (click_package.tests.test_paths.TestClickPaths) ... ok test_app_stops_on_remove (click_package.tests.test_user.StopAppTestCase) ...** (process:295282): WARNING **: 22:14:20.016: user.vala:637: Can not connect to logind
** (process:295282): WARNING **: 22:14:20.017: user.vala:672: Can not get the dbus session to stop app (Failed to open file “/run/user/1000/dbus-session”: No such file or directory)
** (process:295282): WARNING **: 22:14:20.020: user.vala:737: Error removing cache for 'meep': Error opening directory '/tmp/tmpcui60vy3/XDG_CACHE_HOME/meep': No such file or directory
oktest_ensure_db_chown_fails (click_package.tests.test_user.TestClickUser) ... ok test_ensure_db_getpwnam_fails (click_package.tests.test_user.TestClickUser) ... ok test_ensure_db_mkdir_fails (click_package.tests.test_user.TestClickUser) ... ok
test_ensure_db_ownership (click_package.tests.test_user.TestClickUser) ... ok test_get_manifest (click_package.tests.test_user.TestClickUser) ... oktest_get_manifest_multiple_root (click_package.tests.test_user.TestClickUser) ... ok
test_get_manifests (click_package.tests.test_user.TestClickUser) ... oktest_get_manifests_multiple_root (click_package.tests.test_user.TestClickUser) ... ** (process:295282): WARNING **: 22:14:21.171: user.vala:737: Error removing cache for 'b': Error opening directory '/tmp/tmpcui60vy3/XDG_CACHE_HOME/b': No such file or directory
ok test_get_overlay_db (click_package.tests.test_user.TestClickUser) ... ok test_get_package_names (click_package.tests.test_user.TestClickUser) ... oktest_get_package_names_missing (click_package.tests.test_user.TestClickUser) ... ok test_get_package_names_multiple_root (click_package.tests.test_user.TestClickUser) ... ok
test_get_path (click_package.tests.test_user.TestClickUser) ... oktest_get_path_multiple_root (click_package.tests.test_user.TestClickUser) ... ok
test_get_version (click_package.tests.test_user.TestClickUser) ... ok test_get_version_missing (click_package.tests.test_user.TestClickUser) ... oktest_get_version_multiple_root (click_package.tests.test_user.TestClickUser) ... ok
test_hidden (click_package.tests.test_user.TestClickUser) ...** (process:295282): WARNING **: 22:14:21.189: user.vala:737: Error removing cache for 'b': Error opening directory '/tmp/tmpcui60vy3/XDG_CACHE_HOME/b': No such file or directory
ok test_is_removable (click_package.tests.test_user.TestClickUser) ... oktest_is_removable_multiple_root (click_package.tests.test_user.TestClickUser) ... ok
test_new_db_not_directory (click_package.tests.test_user.TestClickUser) ... ok test_new_no_db (click_package.tests.test_user.TestClickUser) ... ok test_remove (click_package.tests.test_user.TestClickUser) ...** (process:295282): WARNING **: 22:14:21.968: user.vala:737: Error removing cache for 'a': Error opening directory '/tmp/tmpcui60vy3/XDG_CACHE_HOME/a': No such file or directory
ok test_remove_missing (click_package.tests.test_user.TestClickUser) ... ok test_remove_multiple_root (click_package.tests.test_user.TestClickUser) ...** (process:295282): WARNING **: 22:14:21.970: user.vala:737: Error removing cache for 'a': Error opening directory '/tmp/tmpcui60vy3/XDG_CACHE_HOME/a': No such file or directory
** (process:295282): WARNING **: 22:14:21.970: user.vala:737: Error removing cache for 'b': Error opening directory '/tmp/tmpcui60vy3/XDG_CACHE_HOME/b': No such file or directory
** (process:295282): WARNING **: 22:14:21.971: user.vala:737: Error removing cache for 'c': Error opening directory '/tmp/tmpcui60vy3/XDG_CACHE_HOME/c': No such file or directory
oktest_remove_multiple_root_creates_overlay_directory (click_package.tests.test_user.TestClickUser) ... ** (process:295282): WARNING **: 22:14:21.973: user.vala:737: Error removing cache for 'a': Error opening directory '/tmp/tmpcui60vy3/XDG_CACHE_HOME/a': No such file or directory
ok test_set_version_changed (click_package.tests.test_user.TestClickUser) ... ok test_set_version_missing (click_package.tests.test_user.TestClickUser) ... oktest_set_version_missing_target (click_package.tests.test_user.TestClickUser) ... ok test_set_version_multiple_root (click_package.tests.test_user.TestClickUser) ... ok test_set_version_restore_to_underlay (click_package.tests.test_user.TestClickUser) ... ok test_remove_does_not_follow_if_xdg_dir_is_symlink (click_package.tests.test_user.UserDataRemovalTestCase)
Ensure that if the user-cach dir is a symlink that symlink is ... oktest_remove_does_not_follow_symlinks_inside_dir (click_package.tests.test_user.UserDataRemovalTestCase)
Ensure that symlinks that are inside a user-data dir get removed, ... oktest_remove_removes_cache_only (click_package.tests.test_user.UserDataRemovalTestCase)
Ensure that app cache for user is removed if a click is removed ... ok test_scripts (click_package.tests.test_scripts.TestScripts) ... ok test_add (click_package.tests.test_database.TestClickDB) ... oktest_has_package_version (click_package.tests.test_database.TestClickDB) ... ok
test_manifest (click_package.tests.test_database.TestClickDB) ... ok test_manifest_bad (click_package.tests.test_database.TestClickDB) ... ok test_manifests_all (click_package.tests.test_database.TestClickDB) ... ok test_manifests_current (click_package.tests.test_database.TestClickDB) ... ok test_no_db_conf_errors (click_package.tests.test_database.TestClickDB) ... ok test_no_read (click_package.tests.test_database.TestClickDB) ... ok test_overlay (click_package.tests.test_database.TestClickDB) ... ok test_packages_all (click_package.tests.test_database.TestClickDB) ... ok test_packages_current (click_package.tests.test_database.TestClickDB) ... ok test_path (click_package.tests.test_database.TestClickDB) ... ok test_read_configuration (click_package.tests.test_database.TestClickDB) ... ok test_read_nonexistent (click_package.tests.test_database.TestClickDB) ... ok test_read_not_directory (click_package.tests.test_database.TestClickDB) ... oktest_equal_to (click_package.tests.test_database.TestClickInstalledPackage) ... expected failure
test_hash (click_package.tests.test_database.TestClickInstalledPackage) ... oktest_any_app_running_bad_manifest (click_package.tests.test_database.TestClickSingleDB) ... ok test_any_app_running_missing_app (click_package.tests.test_database.TestClickSingleDB) ... ok test_any_app_running_no_app_pid_command (click_package.tests.test_database.TestClickSingleDB) ... ok test_any_app_running_no_hooks (click_package.tests.test_database.TestClickSingleDB) ... ok test_any_app_running_ubuntu_app_pid (click_package.tests.test_database.TestClickSingleDB) ... ok
test_app_running (click_package.tests.test_database.TestClickSingleDB) ... oktest_ensure_ownership (click_package.tests.test_database.TestClickSingleDB) ... ok test_ensure_ownership_failed_chown (click_package.tests.test_database.TestClickSingleDB) ... ok test_ensure_ownership_missing_clickpkg_user (click_package.tests.test_database.TestClickSingleDB) ... ok test_ensure_ownership_quick_if_correct (click_package.tests.test_database.TestClickSingleDB) ... skipped 'See https://gitlab.com/ubports/core/click/-/issues/5'
test_gc (click_package.tests.test_database.TestClickSingleDB) ... oktest_gc_fixes_old_user_registrations (click_package.tests.test_database.TestClickSingleDB) ... ok test_gc_ignores_non_directory (click_package.tests.test_database.TestClickSingleDB) ... ok test_has_package_version (click_package.tests.test_database.TestClickSingleDB) ... ok
test_manifest (click_package.tests.test_database.TestClickSingleDB) ... ok test_manifest_bad (click_package.tests.test_database.TestClickSingleDB) ... oktest_maybe_remove_not_running (click_package.tests.test_database.TestClickSingleDB) ... ok test_maybe_remove_registered (click_package.tests.test_database.TestClickSingleDB) ... ok test_maybe_remove_running (click_package.tests.test_database.TestClickSingleDB) ... ok
test_packages_all (click_package.tests.test_database.TestClickSingleDB) ... oktest_packages_all_ignores_non_directory (click_package.tests.test_database.TestClickSingleDB) ... ok test_packages_current (click_package.tests.test_database.TestClickSingleDB) ... ok
test_path (click_package.tests.test_database.TestClickSingleDB) ... ok skipped 'Skipping integration tests' skipped 'Skipping integration tests' skipped 'Skipping integration tests' skipped 'Skipping integration tests' skipped 'Skipping integration tests' skipped 'Skipping integration tests' skipped 'Skipping integration tests' skipped 'Skipping integration tests' skipped 'Skipping integration tests' skipped 'Skipping integration tests' skipped 'Skipping integration tests' test_pep8_clean (click_package.tests.test_static.TestStatic) ... ok test_pyflakes_clean (click_package.tests.test_static.TestStatic) ... ok test_fields (click_package.tests.test_framework.TestClickFramework) ... oktest_get_frameworks (click_package.tests.test_framework.TestClickFramework) ... ok test_get_frameworks_ignores_other_files (click_package.tests.test_framework.TestClickFramework) ... ok test_get_frameworks_ignores_unopenable_files (click_package.tests.test_framework.TestClickFramework) ... ok test_get_frameworks_nonexistent (click_package.tests.test_framework.TestClickFramework) ... ok test_get_frameworks_not_directory (click_package.tests.test_framework.TestClickFramework) ... ok test_has_framework (click_package.tests.test_framework.TestClickFramework) ... ok
test_open (click_package.tests.test_framework.TestClickFramework) ... ok test_add_file (click_package.tests.test_build.TestClickBuilder) ... ok test_build (click_package.tests.test_build.TestClickBuilder) ... oktest_build_excludes_dot_click (click_package.tests.test_build.TestClickBuilder) ... ok test_build_ignore_pattern (click_package.tests.test_build.TestClickBuilder) ... WARNING:root:Ignoring missing framework "ubuntu-sdk-13.10"
oktest_build_multiple_architectures (click_package.tests.test_build.TestClickBuilder) ... ok test_build_multiple_frameworks (click_package.tests.test_build.TestClickBuilder) ... ok test_epochless_version (click_package.tests.test_build.TestClickBuilder) ... ok test_manifest_syntax_error (click_package.tests.test_build.TestClickBuilder) ... ok
test_read_manifest (click_package.tests.test_build.TestClickBuilder) ... oktest_validate_framework_bad (click_package.tests.test_build.TestClickFrameworkValidation) ... ok test_validate_framework_good (click_package.tests.test_build.TestClickFrameworkValidation) ... ok
test_add_file (click_package.tests.test_build.TestClickSourceBuilder) ... ok test_build (click_package.tests.test_build.TestClickSourceBuilder) ... oktest_epochless_version (click_package.tests.test_build.TestClickSourceBuilder) ... ok test_manifest_syntax_error (click_package.tests.test_build.TestClickSourceBuilder) ... ok test_read_manifest (click_package.tests.test_build.TestClickSourceBuilder) ... ok test_audit_bad_click_version (click_package.tests.test_install.TestClickInstaller) ... ok test_audit_broken_md5sums (click_package.tests.test_install.TestClickInstaller) ... ok test_audit_forbids_depends (click_package.tests.test_install.TestClickInstaller) ... ok test_audit_forbids_maintscript (click_package.tests.test_install.TestClickInstaller) ... ok test_audit_invalid_manifest_json (click_package.tests.test_install.TestClickInstaller) ... ok test_audit_matching_md5sums (click_package.tests.test_install.TestClickInstaller) ... b'Traceback (most recent call last):\n File "/<<PKGBUILDDIR>>/click_package/tests/gimock.py", line 497, in run_in_subprocess\n yield partial(helper, lib_path, rpreloads), preloads\n File "/<<PKGBUILDDIR>>/click_package/tests/test_install.py", line 421, in test_audit_matching_md5sums\n ("test-package", "1.0"), installer.audit(path, slow=True))\n File "/<<PKGBUILDDIR>>/click_package/install.py", line 288, in audit\n self.extract(path, temp_dir)\n File "/<<PKGBUILDDIR>>/click_package/install.py", line 164, in extract\n subprocess.check_call(command, env=env, **kwargs)\n File "/usr/lib/python3.10/subprocess.py", line 369, in check_call\n raise CalledProcessError(retcode, cmd)\nsubprocess.CalledProcessError: Command \'[\'dpkg-deb\', \'-R\', \'/tmp/click6sb8tp81/fake-package.click\', \'/tmp/click84v3008k\']\' returned non-zero exit status 2.\n'
ERROR/usr/lib/python3.10/unittest/case.py:613: ResourceWarning: unclosed file <_io.BufferedReader name=5>
outcome.errors.clear() ResourceWarning: Enable tracemalloc to get the object allocation tracebacktest_audit_missing_dot_slash (click_package.tests.test_install.TestClickInstaller) ... ok test_audit_missing_framework (click_package.tests.test_install.TestClickInstaller) ... ok test_audit_missing_framework_force (click_package.tests.test_install.TestClickInstaller) ... ok test_audit_multiple_frameworks (click_package.tests.test_install.TestClickInstaller) ... ok test_audit_name_bad_character (click_package.tests.test_install.TestClickInstaller) ... ok test_audit_new_click_version (click_package.tests.test_install.TestClickInstaller) ... ok test_audit_no_click_version (click_package.tests.test_install.TestClickInstaller) ... ok test_audit_no_framework (click_package.tests.test_install.TestClickInstaller) ... ok test_audit_no_name (click_package.tests.test_install.TestClickInstaller) ... ok test_audit_no_signature (click_package.tests.test_install.TestClickInstaller) ... skipped 'this test needs debsig-verify' test_audit_no_version (click_package.tests.test_install.TestClickInstaller) ... ok test_audit_passes_correct_package (click_package.tests.test_install.TestClickInstaller) ... ok test_audit_requires_manifest (click_package.tests.test_install.TestClickInstaller) ... ok test_install (click_package.tests.test_install.TestClickInstaller) ... b'ERROR:root:[\'dpkg\', \'--force-not-root\', \'--force-bad-path\', \'--force-architecture\', \'--instdir\', \'/tmp/click9a_gafth/root/test-package/1.0\', \'--admindir\', \'/tmp/click9a_gafth/root/test-package/1.0/.click\', \'--path-exclude\', \'*/.click/*\', \'--log\', \'/tmp/click9a_gafth/root/.click/log\', \'--no-triggers\', \'--install\', \'/tmp/click9a_gafth/fake-package.click\'] failed with exit_code 1:\ndpkg-split: error: failed to read archive \'/tmp/click9a_gafth/fake-package.click\': Bad file descriptor\ndpkg: error processing archive /tmp/click9a_gafth/fake-package.click (--install):\n subprocess dpkg-split returned error exit status 2\nErrors were encountered while processing:\n /tmp/click9a_gafth/fake-package.click\n\nTraceback (most recent call last):\n File "/<<PKGBUILDDIR>>/click_package/tests/gimock.py", line 497, in run_in_subprocess\n yield partial(helper, lib_path, rpreloads), preloads\n File "/<<PKGBUILDDIR>>/click_package/tests/test_install.py", line 476, in test_install\n installer.install(path)\n File "/<<PKGBUILDDIR>>/click_package/install.py", line 462, in install\n package_name, package_version, old_version = self._unpack(\n File "/<<PKGBUILDDIR>>/click_package/install.py", line 416, in _unpack\n fn(command,\n File "/usr/lib/python3.10/subprocess.py", line 420, in check_output\n return run(*popenargs, stdout=PIPE, timeout=timeout, check=True,\n File "/usr/lib/python3.10/subprocess.py", line 524, in run\n raise CalledProcessError(retcode, process.args,\nsubprocess.CalledProcessError: Command \'[\'dpkg\', \'--force-not-root\', \'--force-bad-path\', \'--force-architecture\', \'--instdir\', \'/tmp/click9a_gafth/root/test-package/1.0\', \'--admindir\', \'/tmp/click9a_gafth/root/test-package/1.0/.click\', \'--path-exclude\', \'*/.click/*\', \'--log\', \'/tmp/click9a_gafth/root/.click/log\', \'--no-triggers\', \'--install\', \'/tmp/click9a_gafth/fake-package.click\']\' returned non-zero exit status 1.\n'
ERROR/usr/lib/python3.10/unittest/case.py:613: ResourceWarning: unclosed file <_io.BufferedReader name=5>
outcome.errors.clear() ResourceWarning: Enable tracemalloc to get the object allocation tracebacktest_multiple_architectures (click_package.tests.test_install.TestClickInstaller) ... b'ERROR:root:[\'dpkg\', \'--force-not-root\', \'--force-bad-path\', \'--force-architecture\', \'--instdir\', \'/tmp/clickh8igg1to/root/test-package/1.1\', \'--admindir\', \'/tmp/clickh8igg1to/root/test-package/1.1/.click\', \'--path-exclude\', \'*/.click/*\', \'--log\', \'/tmp/clickh8igg1to/root/.click/log\', \'--no-triggers\', \'--install\', \'/tmp/clickh8igg1to/fake-package.click\'] failed with exit_code 1:\ndpkg-split: error: failed to read archive \'/tmp/clickh8igg1to/fake-package.click\': Bad file descriptor\ndpkg: error processing archive /tmp/clickh8igg1to/fake-package.click (--install):\n subprocess dpkg-split returned error exit status 2\nErrors were encountered while processing:\n /tmp/clickh8igg1to/fake-package.click\n\nTraceback (most recent call last):\n File "/<<PKGBUILDDIR>>/click_package/tests/gimock.py", line 497, in run_in_subprocess\n yield partial(helper, lib_path, rpreloads), preloads\n File "/<<PKGBUILDDIR>>/click_package/tests/test_install.py", line 724, in test_multiple_architectures\n installer.install(path)\n File "/<<PKGBUILDDIR>>/click_package/install.py", line 462, in install\n package_name, package_version, old_version = self._unpack(\n File "/<<PKGBUILDDIR>>/click_package/install.py", line 416, in _unpack\n fn(command,\n File "/usr/lib/python3.10/subprocess.py", line 420, in check_output\n return run(*popenargs, stdout=PIPE, timeout=timeout, check=True,\n File "/usr/lib/python3.10/subprocess.py", line 524, in run\n raise CalledProcessError(retcode, process.args,\nsubprocess.CalledProcessError: Command \'[\'dpkg\', \'--force-not-root\', \'--force-bad-path\', \'--force-architecture\', \'--instdir\', \'/tmp/clickh8igg1to/root/test-package/1.1\', \'--admindir\', \'/tmp/clickh8igg1to/root/test-package/1.1/.click\', \'--path-exclude\', \'*/.click/*\', \'--log\', \'/tmp/clickh8igg1to/root/.click/log\', \'--no-triggers\', \'--install\', \'/tmp/clickh8igg1to/fake-package.click\']\' returned non-zero exit status 1.\n'
ERROR/usr/lib/python3.10/unittest/case.py:613: ResourceWarning: unclosed file <_io.BufferedReader name=5>
outcome.errors.clear() ResourceWarning: Enable tracemalloc to get the object allocation tracebacktest_no_write_permission (click_package.tests.test_install.TestClickInstaller) ... ok test_reinstall_preinstalled (click_package.tests.test_install.TestClickInstaller) ... ERROR
test_sandbox (click_package.tests.test_install.TestClickInstaller) ... oktest_single_architecture (click_package.tests.test_install.TestClickInstaller) ... b'ERROR:root:[\'dpkg\', \'--force-not-root\', \'--force-bad-path\', \'--force-architecture\', \'--instdir\', \'/tmp/click1a60o02l/root/test-package/1.1\', \'--admindir\', \'/tmp/click1a60o02l/root/test-package/1.1/.click\', \'--path-exclude\', \'*/.click/*\', \'--log\', \'/tmp/click1a60o02l/root/.click/log\', \'--no-triggers\', \'--install\', \'/tmp/click1a60o02l/fake-package.click\'] failed with exit_code 1:\ndpkg-split: error: failed to read archive \'/tmp/click1a60o02l/fake-package.click\': Bad file descriptor\ndpkg: error processing archive /tmp/click1a60o02l/fake-package.click (--install):\n subprocess dpkg-split returned error exit status 2\nErrors were encountered while processing:\n /tmp/click1a60o02l/fake-package.click\n\nTraceback (most recent call last):\n File "/<<PKGBUILDDIR>>/click_package/tests/gimock.py", line 497, in run_in_subprocess\n yield partial(helper, lib_path, rpreloads), preloads\n File "/<<PKGBUILDDIR>>/click_package/tests/test_install.py", line 687, in test_single_architecture\n installer.install(path)\n File "/<<PKGBUILDDIR>>/click_package/install.py", line 462, in install\n package_name, package_version, old_version = self._unpack(\n File "/<<PKGBUILDDIR>>/click_package/install.py", line 416, in _unpack\n fn(command,\n File "/usr/lib/python3.10/subprocess.py", line 420, in check_output\n return run(*popenargs, stdout=PIPE, timeout=timeout, check=True,\n File "/usr/lib/python3.10/subprocess.py", line 524, in run\n raise CalledProcessError(retcode, process.args,\nsubprocess.CalledProcessError: Command \'[\'dpkg\', \'--force-not-root\', \'--force-bad-path\', \'--force-architecture\', \'--instdir\', \'/tmp/click1a60o02l/root/test-package/1.1\', \'--admindir\', \'/tmp/click1a60o02l/root/test-package/1.1/.click\', \'--path-exclude\', \'*/.click/*\', \'--log\', \'/tmp/click1a60o02l/root/.click/log\', \'--no-triggers\', \'--install\', \'/tmp/click1a60o02l/fake-package.click\']\' returned non-zero exit status 1.\n'
ERROR/usr/lib/python3.10/unittest/case.py:613: ResourceWarning: unclosed file <_io.BufferedReader name=5>
outcome.errors.clear() ResourceWarning: Enable tracemalloc to get the object allocation tracebacktest_upgrade (click_package.tests.test_install.TestClickInstaller) ... b'ERROR:root:[\'dpkg\', \'--force-not-root\', \'--force-bad-path\', \'--force-architecture\', \'--instdir\', \'/tmp/click1fuseky0/root/test-package/1.1\', \'--admindir\', \'/tmp/click1fuseky0/root/test-package/1.1/.click\', \'--path-exclude\', \'*/.click/*\', \'--log\', \'/tmp/click1fuseky0/root/.click/log\', \'--no-triggers\', \'--install\', \'/tmp/click1fuseky0/fake-package.click\'] failed with exit_code 1:\ndpkg-split: error: failed to read archive \'/tmp/click1fuseky0/fake-package.click\': Bad file descriptor\ndpkg: error processing archive /tmp/click1fuseky0/fake-package.click (--install):\n subprocess dpkg-split returned error exit status 2\nErrors were encountered while processing:\n /tmp/click1fuseky0/fake-package.click\n\nTraceback (most recent call last):\n File "/<<PKGBUILDDIR>>/click_package/tests/gimock.py", line 497, in run_in_subprocess\n yield partial(helper, lib_path, rpreloads), preloads\n File "/<<PKGBUILDDIR>>/click_package/tests/test_install.py", line 579, in test_upgrade\n installer.install(path)\n File "/<<PKGBUILDDIR>>/click_package/install.py", line 462, in install\n package_name, package_version, old_version = self._unpack(\n File "/<<PKGBUILDDIR>>/click_package/install.py", line 416, in _unpack\n fn(command,\n File "/usr/lib/python3.10/subprocess.py", line 420, in check_output\n return run(*popenargs, stdout=PIPE, timeout=timeout, check=True,\n File "/usr/lib/python3.10/subprocess.py", line 524, in run\n raise CalledProcessError(retcode, process.args,\nsubprocess.CalledProcessError: Command \'[\'dpkg\', \'--force-not-root\', \'--force-bad-path\', \'--force-architecture\', \'--instdir\', \'/tmp/click1fuseky0/root/test-package/1.1\', \'--admindir\', \'/tmp/click1fuseky0/root/test-package/1.1/.click\', \'--path-exclude\', \'*/.click/*\', \'--log\', \'/tmp/click1fuseky0/root/.click/log\', \'--no-triggers\', \'--install\', \'/tmp/click1fuseky0/fake-package.click\']\' returned non-zero exit status 1.\n'
ERROR/usr/lib/python3.10/unittest/case.py:613: ResourceWarning: unclosed file <_io.BufferedReader name=5>
outcome.errors.clear() ResourceWarning: Enable tracemalloc to get the object allocation tracebacktest_world_readable (click_package.tests.test_install.TestClickInstaller) ... b'ERROR:root:[\'dpkg\', \'--force-not-root\', \'--force-bad-path\', \'--force-architecture\', \'--instdir\', \'/tmp/clickd7gf0a43/root/test-package/1.1\', \'--admindir\', \'/tmp/clickd7gf0a43/root/test-package/1.1/.click\', \'--path-exclude\', \'*/.click/*\', \'--log\', \'/tmp/clickd7gf0a43/root/.click/log\', \'--no-triggers\', \'--install\', \'/tmp/clickd7gf0a43/fake-package.click\'] failed with exit_code 1:\ndpkg-split: error: failed to read archive \'/tmp/clickd7gf0a43/fake-package.click\': Bad file descriptor\ndpkg: error processing archive /tmp/clickd7gf0a43/fake-package.click (--install):\n subprocess dpkg-split returned error exit status 2\nErrors were encountered while processing:\n /tmp/clickd7gf0a43/fake-package.click\n\nTraceback (most recent call last):\n File "/<<PKGBUILDDIR>>/click_package/tests/gimock.py", line 497, in run_in_subprocess\n yield partial(helper, lib_path, rpreloads), preloads\n File "/<<PKGBUILDDIR>>/click_package/tests/test_install.py", line 644, in test_world_readable\n installer.install(path)\n File "/<<PKGBUILDDIR>>/click_package/install.py", line 462, in install\n package_name, package_version, old_version = self._unpack(\n File "/<<PKGBUILDDIR>>/click_package/install.py", line 416, in _unpack\n fn(command,\n File "/usr/lib/python3.10/subprocess.py", line 420, in check_output\n return run(*popenargs, stdout=PIPE, timeout=timeout, check=True,\n File "/usr/lib/python3.10/subprocess.py", line 524, in run\n raise CalledProcessError(retcode, process.args,\nsubprocess.CalledProcessError: Command \'[\'dpkg\', \'--force-not-root\', \'--force-bad-path\', \'--force-architecture\', \'--instdir\', \'/tmp/clickd7gf0a43/root/test-package/1.1\', \'--admindir\', \'/tmp/clickd7gf0a43/root/test-package/1.1/.click\', \'--path-exclude\', \'*/.click/*\', \'--log\', \'/tmp/clickd7gf0a43/root/.click/log\', \'--no-triggers\', \'--install\', \'/tmp/clickd7gf0a43/fake-package.click\']\' returned non-zero exit status 1.\n'
ERROR/usr/lib/python3.10/unittest/case.py:613: ResourceWarning: unclosed file <_io.BufferedReader name=5>
outcome.errors.clear() ResourceWarning: Enable tracemalloc to get the object allocation tracebacktest_dir_open_error (click_package.tests.test_osextras.TestOSExtrasNative) ... ok test_dir_read_name_directory_missing (click_package.tests.test_osextras.TestOSExtrasNative) ... ok test_dir_read_name_directory_present (click_package.tests.test_osextras.TestOSExtrasNative) ... ok test_ensuredir_error (click_package.tests.test_osextras.TestOSExtrasNative) ... ok test_ensuredir_previously_missing (click_package.tests.test_osextras.TestOSExtrasNative) ... ok test_ensuredir_previously_present (click_package.tests.test_osextras.TestOSExtrasNative) ... ok test_find_on_path_missing_environment (click_package.tests.test_osextras.TestOSExtrasNative) ... ok test_find_on_path_present_executable (click_package.tests.test_osextras.TestOSExtrasNative) ... ok test_find_on_path_present_not_executable (click_package.tests.test_osextras.TestOSExtrasNative) ... ok test_find_on_path_requires_regular_file (click_package.tests.test_osextras.TestOSExtrasNative) ... ok test_symlink_error (click_package.tests.test_osextras.TestOSExtrasNative) ... ok test_symlink_file_present (click_package.tests.test_osextras.TestOSExtrasNative) ... ok test_symlink_link_present (click_package.tests.test_osextras.TestOSExtrasNative) ... ok test_symlink_missing (click_package.tests.test_osextras.TestOSExtrasNative) ... ok test_symlink_unlink_error (click_package.tests.test_osextras.TestOSExtrasNative) ... ok
test_umask (click_package.tests.test_osextras.TestOSExtrasNative) ... oktest_unlink_error (click_package.tests.test_osextras.TestOSExtrasNative) ... ok test_unlink_file_missing (click_package.tests.test_osextras.TestOSExtrasNative) ... ok test_unlink_file_present (click_package.tests.test_osextras.TestOSExtrasNative) ... ok test_ensuredir_oserror (click_package.tests.test_osextras.TestOSExtrasPython) ... ok test_ensuredir_previously_missing (click_package.tests.test_osextras.TestOSExtrasPython) ... ok test_ensuredir_previously_present (click_package.tests.test_osextras.TestOSExtrasPython) ... ok test_find_on_path_missing_environment (click_package.tests.test_osextras.TestOSExtrasPython) ... ok test_find_on_path_present_executable (click_package.tests.test_osextras.TestOSExtrasPython) ... ok test_find_on_path_present_not_executable (click_package.tests.test_osextras.TestOSExtrasPython) ... ok test_find_on_path_requires_regular_file (click_package.tests.test_osextras.TestOSExtrasPython) ... ok test_listdir_directory_missing (click_package.tests.test_osextras.TestOSExtrasPython) ... ok test_listdir_directory_present (click_package.tests.test_osextras.TestOSExtrasPython) ... ok test_listdir_oserror (click_package.tests.test_osextras.TestOSExtrasPython) ... ok test_symlink_file_present (click_package.tests.test_osextras.TestOSExtrasPython) ... ok test_symlink_link_present (click_package.tests.test_osextras.TestOSExtrasPython) ... ok test_symlink_missing (click_package.tests.test_osextras.TestOSExtrasPython) ... ok test_symlink_oserror (click_package.tests.test_osextras.TestOSExtrasPython) ... ok test_symlink_unlink_oserror (click_package.tests.test_osextras.TestOSExtrasPython) ... ok
test_umask (click_package.tests.test_osextras.TestOSExtrasPython) ... oktest_unlink_file_missing (click_package.tests.test_osextras.TestOSExtrasPython) ... ok test_unlink_file_present (click_package.tests.test_osextras.TestOSExtrasPython) ... ok test_unlink_oserror (click_package.tests.test_osextras.TestOSExtrasPython) ... ok
======================================================================ERROR: test_audit_matching_md5sums (click_package.tests.test_install.TestClickInstaller)
---------------------------------------------------------------------- Traceback (most recent call last):File "/<<PKGBUILDDIR>>/click_package/tests/test_install.py", line 399, in test_audit_matching_md5sums
enter() File "/<<PKGBUILDDIR>>/click_package/tests/gimock.py", line 491, in helper raise Exception("Subprocess returned an error! (%s, %s)" % (Exception: Subprocess returned an error! (<class 'subprocess.CalledProcessError'>, 1)
====================================================================== ERROR: test_install (click_package.tests.test_install.TestClickInstaller) ---------------------------------------------------------------------- Traceback (most recent call last): File "/usr/lib/python3.10/unittest/mock.py", line 1369, in patched return func(*newargs, **newkeywargs)File "/<<PKGBUILDDIR>>/click_package/tests/test_install.py", line 453, in test_install
enter() File "/<<PKGBUILDDIR>>/click_package/tests/gimock.py", line 491, in helper raise Exception("Subprocess returned an error! (%s, %s)" % (Exception: Subprocess returned an error! (<class 'subprocess.CalledProcessError'>, 1)
======================================================================ERROR: test_multiple_architectures (click_package.tests.test_install.TestClickInstaller)
---------------------------------------------------------------------- Traceback (most recent call last): File "/usr/lib/python3.10/unittest/mock.py", line 1369, in patched return func(*newargs, **newkeywargs)File "/<<PKGBUILDDIR>>/click_package/tests/test_install.py", line 700, in test_multiple_architectures
enter() File "/<<PKGBUILDDIR>>/click_package/tests/gimock.py", line 491, in helper raise Exception("Subprocess returned an error! (%s, %s)" % (Exception: Subprocess returned an error! (<class 'subprocess.CalledProcessError'>, 1)
======================================================================ERROR: test_reinstall_preinstalled (click_package.tests.test_install.TestClickInstaller)
---------------------------------------------------------------------- Traceback (most recent call last): File "/<<PKGBUILDDIR>>/click_package/tests/helpers.py", line 59, in wrapper return func(*args, **kwargs)File "/<<PKGBUILDDIR>>/click_package/tests/test_install.py", line 755, in test_reinstall_preinstalled
installer.install(path, all_users=True) File "/<<PKGBUILDDIR>>/click_package/install.py", line 462, in install package_name, package_version, old_version = self._unpack( File "/<<PKGBUILDDIR>>/click_package/install.py", line 416, in _unpack fn(command, File "/usr/lib/python3.10/subprocess.py", line 420, in check_output return run(*popenargs, stdout=PIPE, timeout=timeout, check=True, File "/usr/lib/python3.10/subprocess.py", line 524, in run raise CalledProcessError(retcode, process.args,subprocess.CalledProcessError: Command '['dpkg', '--force-not-root', '--force-bad-path', '--force-architecture', '--instdir', '/tmp/clickxj9jo6q9/underlay/test-package/1.1', '--admindir', '/tmp/clickxj9jo6q9/underlay/test-package/1.1/.click', '--path-exclude', '*/.click/*', '--log', '/tmp/clickxj9jo6q9/underlay/.click/log', '--no-triggers', '--install', '/tmp/clickxj9jo6q9/fake-package.click']' returned non-zero exit status 1.
======================================================================ERROR: test_single_architecture (click_package.tests.test_install.TestClickInstaller)
---------------------------------------------------------------------- Traceback (most recent call last): File "/usr/lib/python3.10/unittest/mock.py", line 1369, in patched return func(*newargs, **newkeywargs)File "/<<PKGBUILDDIR>>/click_package/tests/test_install.py", line 663, in test_single_architecture
enter() File "/<<PKGBUILDDIR>>/click_package/tests/gimock.py", line 491, in helper raise Exception("Subprocess returned an error! (%s, %s)" % (Exception: Subprocess returned an error! (<class 'subprocess.CalledProcessError'>, 1)
====================================================================== ERROR: test_upgrade (click_package.tests.test_install.TestClickInstaller) ---------------------------------------------------------------------- Traceback (most recent call last): File "/usr/lib/python3.10/unittest/mock.py", line 1369, in patched return func(*newargs, **newkeywargs)File "/<<PKGBUILDDIR>>/click_package/tests/test_install.py", line 551, in test_upgrade
enter() File "/<<PKGBUILDDIR>>/click_package/tests/gimock.py", line 491, in helper raise Exception("Subprocess returned an error! (%s, %s)" % (Exception: Subprocess returned an error! (<class 'subprocess.CalledProcessError'>, 1)
======================================================================ERROR: test_world_readable (click_package.tests.test_install.TestClickInstaller)
---------------------------------------------------------------------- Traceback (most recent call last): File "/usr/lib/python3.10/unittest/mock.py", line 1369, in patched return func(*newargs, **newkeywargs)File "/<<PKGBUILDDIR>>/click_package/tests/test_install.py", line 613, in test_world_readable
enter() File "/<<PKGBUILDDIR>>/click_package/tests/gimock.py", line 491, in helper raise Exception("Subprocess returned an error! (%s, %s)" % (Exception: Subprocess returned an error! (<class 'subprocess.CalledProcessError'>, 1)
---------------------------------------------------------------------- Ran 225 tests in 30.406s FAILED (errors=7, skipped=13, expected failures=1) Test failed: <unittest.runner.TextTestResult run=225 errors=7 failures=0> b'' b'' b'' b'' b'' b''error: Test failed: <unittest.runner.TextTestResult run=225 errors=7 failures=0>
make[3]: *** [Makefile:873: check-local] Error 1 make[3]: Leaving directory '/<<PKGBUILDDIR>>' make[2]: *** [Makefile:738: check-am] Error 2 make[2]: Leaving directory '/<<PKGBUILDDIR>>' make[1]: *** [Makefile:442: check-recursive] Error 1 make[1]: Leaving directory '/<<PKGBUILDDIR>>'dh_auto_test: error: make -j8 check "TESTSUITEFLAGS=-j8 --verbose" VERBOSE=1 returned exit code 2
make: *** [debian/rules:14: binary] Error 25dpkg-buildpackage: error: debian/rules binary subprocess returned exit status 2
-------------------------------------------------------------------------------- Build finished at 2022-05-28T22:14:37Z ``` -- DAS-NETZWERKTEAM c\o Technik- und Ökologiezentrum Eckernförde Mike Gabriel, Marienthaler Str. 17, 24340 Eckernförde mobile: +49 (1520) 1976 148 landline: +49 (4351) 850 8940 GnuPG Fingerprint: 9BFB AEE8 6C0A A5FF BF22 0782 9AF4 6B30 2577 1B31 mail: mike.gabr...@das-netzwerkteam.de, http://das-netzwerkteam.de
pgpupNFWxRt3w.pgp
Description: Digitale PGP-Signatur