pmbootstrap/test
Johannes Marbach 1eac61bcf7
Add option to run sudo -v in a loop to prevent repeated password entries (MR 1997)
Many of pmbootstrap's actions require root rights. When after requesting
sudo access pmbootstrap takes longer than the sudo timeout interval to finish
execution, the password will have to be entered again on the next sudo
action.

This change adds an opt-in feature to run sudo -v in a background loop
in order to prevent having to enter the password more than once for a single
pmbootstrap run. The loop runs as a daemon timer which automatically gets
canceled when pmbootstrap exits.

Closes: #1677
2020-12-14 19:14:14 +01:00
..
pmb_test test.test_helpers_git.test_pull: move prep code (!1882) 2020-03-14 19:15:32 +03:00
testdata test: add deviceinfo kernel suffix parsing (MR 1986) 2020-11-10 09:15:52 +03:00
static_code_analysis.sh Add sideload command 2020-12-08 17:42:30 +01:00
test_apk_static.py Cosmetic: use SPDX license header (!1877) 2020-02-24 03:11:10 +03:00
test_aportgen.py test/test_aportgen.py::test_aportgen: armhf->armv7 (MR 1942) 2020-06-21 11:50:57 +02:00
test_aportgen_device_wizard.py pmb: introduce deviceinfo_chassis (MR 1933) 2020-05-24 08:38:10 +02:00
test_bootimg.py pmb.parse.bootimg: detect mediatek header (MR 1955) 2020-08-21 18:33:30 +02:00
test_build_is_necessary.py pmb.build.is_necessary: fix case with Alpine's pkg (!1904) 2020-04-04 13:19:03 +02:00
test_build_package.py chroot: put built packages into channel subdir (MR 1912) 2020-05-17 08:08:45 +02:00
test_chroot_interactive_shell.py Cosmetic: use SPDX license header (!1877) 2020-02-24 03:11:10 +03:00
test_config_init.py Cosmetic: use SPDX license header (!1877) 2020-02-24 03:11:10 +03:00
test_config_pmaports.py pmb.helpers.repo.urls: use channels.cfg mirrordirs (MR 1912) 2020-05-17 08:08:45 +02:00
test_config_user.py Cosmetic: use SPDX license header (!1877) 2020-02-24 03:11:10 +03:00
test_config_workdir.py pmb.chroot.init: verify chroot channel (MR 1912) 2020-05-17 08:08:45 +02:00
test_cross_compile_distcc.py Cosmetic: use SPDX license header (!1877) 2020-02-24 03:11:10 +03:00
test_crossdirect.py test_crossdirect_rust: run on stable channel (MR 1966) 2020-08-05 10:38:23 +02:00
test_envkernel.py Cosmetic: use SPDX license header (!1877) 2020-02-24 03:11:10 +03:00
test_file.py Cosmetic: use SPDX license header (!1877) 2020-02-24 03:11:10 +03:00
test_folder_size.py Cosmetic: use SPDX license header (!1877) 2020-02-24 03:11:10 +03:00
test_frontend.py Cosmetic: use SPDX license header (!1877) 2020-02-24 03:11:10 +03:00
test_helpers_git.py pmb.helpers.git: parse channels.cfg (MR 1912) 2020-05-17 08:08:44 +02:00
test_helpers_lint.py pmbootstrap lint: use CUSTOM_VALID_OPTIONS (MR 1934) 2020-05-10 16:35:35 +02:00
test_helpers_package.py Cosmetic: use SPDX license header (!1877) 2020-02-24 03:11:10 +03:00
test_helpers_pmaports.py test/test_helpers_pmaports: create empty APKBUILDs for fake packages (!1879) 2020-03-14 08:39:13 +01:00
test_helpers_repo.py pmb.helpers.repo.urls: use channels.cfg mirrordirs (MR 1912) 2020-05-17 08:08:45 +02:00
test_helpers_repo_missing.py Cosmetic: use SPDX license header (!1877) 2020-02-24 03:11:10 +03:00
test_helpers_status.py pmbootstrap status: check if git repo is outdated (!1882) 2020-03-14 19:15:32 +03:00
test_helpers_ui.py pmbootstrap init: only display UIs for device arch (MR 1937) 2020-06-02 09:18:39 +02:00
test_install.py pmbootstrap install: support _pmb_recommends (MR 1962) 2020-07-20 14:29:06 +02:00
test_kconfig_check.py pmb.parse.kconfig: add tests (MR 1916) 2020-05-24 04:42:13 +02:00
test_keys.py Cosmetic: use SPDX license header (!1877) 2020-02-24 03:11:10 +03:00
test_mount.py Cosmetic: use SPDX license header (!1877) 2020-02-24 03:11:10 +03:00
test_newapkbuild.py pmb.chroot.init: verify chroot channel (MR 1912) 2020-05-17 08:08:45 +02:00
test_parse_apkbuild.py pmb: Look for device/* files in device/*/... instead (!1879) 2020-03-14 08:44:16 +01:00
test_parse_apkindex.py pmb.parse: Respect provider_priority if multiple providers exist (MR 1945) 2020-06-16 01:31:28 +03:00
test_parse_depends.py pmb.parse: Respect provider_priority if multiple providers exist (MR 1945) 2020-06-16 01:31:28 +03:00
test_parse_deviceinfo.py test: add deviceinfo kernel suffix parsing (MR 1986) 2020-11-10 09:15:52 +03:00
test_pkgrel_bump.py chroot: put built packages into channel subdir (MR 1912) 2020-05-17 08:08:45 +02:00
test_qemu_running_processes.py Use $XDG_CONFIG_HOME instead of hardcoded path (MR 1969) 2020-08-23 13:51:42 +02:00
test_questions.py Add option to run sudo -v in a loop to prevent repeated password entries (MR 1997) 2020-12-14 19:14:14 +01:00
test_run_core.py pmb.helpers.run_core: change kill_as_root to sudo (MR 1997) 2020-12-14 19:08:07 +01:00
test_shell_escape.py Cosmetic: use SPDX license header (!1877) 2020-02-24 03:11:10 +03:00
test_version.py Cosmetic: use SPDX license header (!1877) 2020-02-24 03:11:10 +03:00
test_version_validate.py Cosmetic: use SPDX license header (!1877) 2020-02-24 03:11:10 +03:00
testcases_fast.sh test/testcases_fast.sh: correct pmaports location (MR 1974) 2020-09-12 10:35:37 +02:00