pmbootstrap/test
Oliver Smith 685f2fa9a8
test: fix running test_build_package.py standalone
Add the "args" fixture to test_skip_already_built, so it correctly
initializes logging (and indirectly pmb.helpers.other.cache). With this
it becomes possible to run the test file on its own. See "def args" on
top of the file for implementation of the "args" fixture.

Fix for:
$ pytest -xvv test/test_build_package.py
…
>       assert pmb.helpers.other.cache["built"] == {}                                                                                                          E       TypeError: 'NoneType' object is not subscriptable

Link: https://lists.sr.ht/~postmarketos/pmbootstrap-devel/%3C20230724070509.1885-2-ollieparanoid@postmarketos.org%3E
2023-07-25 09:13:33 +02:00
..
pmb_test test: specify default git branch 2023-07-13 10:07:53 +02:00
testdata aportgen: replace deviceinfo_modules_initfs for modules file 2023-07-21 08:54:10 +02:00
pytest.ini CI: drop support for cached venv + ci runner (MR 2080) 2021-07-04 22:51:53 +02:00
test_apk.py Bump copyright to 2023 2023-01-22 19:18:06 +01:00
test_apk_static.py Bump copyright to 2023 2023-01-22 19:18:06 +01:00
test_aportgen.py test: dont fail on githook symlinks 2023-07-13 10:07:53 +02:00
test_aportgen_device_wizard.py test: dont fail on githook symlinks 2023-07-13 10:07:53 +02:00
test_arguments.py pmb.parse.arguments: add zap --all flag (MR 2117) 2022-02-28 17:09:21 +03:00
test_bootimg.py Bump copyright to 2023 2023-01-22 19:18:06 +01:00
test_build_is_necessary.py Bump copyright to 2023 2023-01-22 19:18:06 +01:00
test_build_package.py test: fix running test_build_package.py standalone 2023-07-25 09:13:33 +02:00
test_chroot_interactive_shell.py Bump copyright to 2023 2023-01-22 19:18:06 +01:00
test_config_init.py Bump copyright to 2023 2023-01-22 19:18:06 +01:00
test_config_pmaports.py Bump copyright to 2023 2023-01-22 19:18:06 +01:00
test_config_user.py pmb.helpers.run_core: move flat_cmd here 2023-07-21 08:54:04 +02:00
test_config_workdir.py Bump copyright to 2023 2023-01-22 19:18:06 +01:00
test_crossdirect.py test: crossdirect: update stable branch ref 2023-07-13 10:07:54 +02:00
test_envkernel.py Bump copyright to 2023 2023-01-22 19:18:06 +01:00
test_file.py Bump copyright to 2023 2023-01-22 19:18:06 +01:00
test_folder_size.py Bump copyright to 2023 2023-01-22 19:18:06 +01:00
test_frontend.py Bump copyright to 2023 2023-01-22 19:18:06 +01:00
test_helpers_git.py test: specify default git branch 2023-07-13 10:07:53 +02:00
test_helpers_lint.py Bump copyright to 2023 2023-01-22 19:18:06 +01:00
test_helpers_package.py Bump copyright to 2023 2023-01-22 19:18:06 +01:00
test_helpers_pmaports.py Bump copyright to 2023 2023-01-22 19:18:06 +01:00
test_helpers_repo.py Bump copyright to 2023 2023-01-22 19:18:06 +01:00
test_helpers_repo_missing.py Bump copyright to 2023 2023-01-22 19:18:06 +01:00
test_helpers_status.py Bump copyright to 2023 2023-01-22 19:18:06 +01:00
test_helpers_ui.py Bump copyright to 2023 2023-01-22 19:18:06 +01:00
test_install.py Bump copyright to 2023 2023-01-22 19:18:06 +01:00
test_mount.py Bump copyright to 2023 2023-01-22 19:18:06 +01:00
test_newapkbuild.py Bump copyright to 2023 2023-01-22 19:18:06 +01:00
test_parse_apkbuild.py Bump copyright to 2023 2023-01-22 19:18:06 +01:00
test_parse_apkindex.py Bump copyright to 2023 2023-01-22 19:18:06 +01:00
test_parse_depends.py Bump copyright to 2023 2023-01-22 19:18:06 +01:00
test_parse_deviceinfo.py Bump copyright to 2023 2023-01-22 19:18:06 +01:00
test_parse_kconfig.py test: rework kconfig check tests 2023-03-24 09:11:47 +01:00
test_pkgrel_bump.py test/test_pkgrel_bump: make sure pmb doesn't cross compile 2023-07-13 10:07:54 +02:00
test_qemu_running_processes.py Bump copyright to 2023 2023-01-22 19:18:06 +01:00
test_questions.py Bump copyright to 2023 2023-01-22 19:18:06 +01:00
test_run_core.py pmb.helpers.run_core: fix proxy env var logic 2023-07-21 08:54:10 +02:00
test_shell_escape.py pmb.helpers.run_core: move flat_cmd here 2023-07-21 08:54:04 +02:00
test_version.py Bump copyright to 2023 2023-01-22 19:18:06 +01:00
test_version_validate.py Bump copyright to 2023 2023-01-22 19:18:06 +01:00
test_zzz_keys.py test/test_zzz_keys.py: move from test/test_keys.py 2023-03-24 09:14:18 +01:00