pmbootstrap-meow/test
Oliver Smith 0d320d0613
pmbootstrap status: rework (MR 2294)
Reimplement "pmbootstrap status" to be just a simple and useful status
overview. The previous version ran a bunch of checks every time, and
would fail on these even if pmaports was used for normal development:
  * "non-official" branch checked out in pmaports
  * pmaports.git is not clean

The information about aports.git was also considered not so useful upon
revisiting this command, since it is only used for "pmbootstrap
aportgen". Most users don't need this, and if the user runs this
command, it will tell if aports.git is outdated.

All of the above made the previous version unpleasant to use and I
suspect most people stopped using the command after trying it out a few
times and seeing the irrelevant but loud NOK complaints.

New version:

  $ pmbootstrap status
  Channel: edge (pmaports: master_staging_systemd)
  Device:  qemu-amd64 (x86_64, kernel: virt)
  UI:      console
  systemd: no (default for selected UI)

Old version (without --details it only shows NOK checks):

  $ pmbootstrap status --details
  [00:55:20] *** CONFIG ***
  [00:55:20] Device: qemu-amd64 (x86_64, "QEMU amd64")
  [00:55:20] Kernel: virt
  [00:55:20] User Interface: console
  [00:55:20]
  [00:55:20] *** GIT REPOS ***
  [00:55:20] Path: /home/user/.local/var/pmbootstrap/cache_git
  [00:55:20] - aports_upstream (master)
  [00:55:20] - pmaports (master)
  [00:55:20]
  [00:55:20] *** CHECKS ***
  [00:55:20] [OK ] Chroots zapped recently (or non-existing)
  [00:55:20] [OK ] aports_upstream: on official channel branch
  [00:55:20] [OK ] aports_upstream: workdir is clean
  [00:55:20] [OK ] aports_upstream: tracking proper remote branch 'origin/master'
  [00:55:20] [OK ] aports_upstream: up to date with remote branch
  [00:55:20] [OK ] aports_upstream: remote information updated recently (via git fetch/pull)
  [00:55:20] [OK ] pmaports: on official channel branch
  [00:55:20] [OK ] pmaports: workdir is clean
  [00:55:20] [OK ] pmaports: tracking proper remote branch 'origin/master'
  [00:55:20] [OK ] pmaports: up to date with remote branch
  [00:55:20] [OK ] pmaports: remote information updated recently (via git fetch/pull)
  [00:55:20]
  [00:55:20] NOTE: chroot is still active (use 'pmbootstrap shutdown' as necessary)
  [00:55:20] DONE!
2024-04-16 18:54:35 +00:00
..
pmb_test test: specify default git branch 2023-07-13 10:07:53 +02:00
testdata test: Test subpackages which set a different architecture (MR 2267) 2024-02-26 20:55:49 +01:00
pytest.ini CI: drop support for cached venv + ci runner (MR 2080) 2021-07-04 22:51:53 +02:00
test_apk.py test.test_apk: Replace osk-sdl with unl0kr in apk install test (MR 2289) 2024-04-04 10:59:58 +02:00
test_apk_static.py Bump copyright to 2023 2023-01-22 19:18:06 +01:00
test_aportgen.py aportgen: Only warn if binary version > APKBUILD version 2023-12-10 14:41:53 +01: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 parse.bootimg: Separate kernel and ramdisk MediaTek headers 2023-11-13 09:30:24 +01:00
test_build_is_necessary.py Bump copyright to 2023 2023-01-22 19:18:06 +01:00
test_build_package.py Revert "pmb.build._package: build depends of subpackages (MR 2292)" 2024-04-15 23:31:14 -07:00
test_chroot_interactive_shell.py Bump copyright to 2023 2023-01-22 19:18:06 +01:00
test_chroot_mount.py install: remove /mnt/pmbootstrap at the end 2023-08-14 09:52:22 +02: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_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 pmbootstrap status: rework (MR 2294) 2024-04-16 18:54:35 +00: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 chroot: /mnt/pmbootstrap-* -> /mnt/pmbootstrap/* 2023-08-14 09:52:17 +02:00
test_helpers_repo_missing.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 pmb.config: do not prompt for nonfree fw/userland (MR 2255) 2024-02-15 16:00:56 -08: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 test: Test subpackages which set a different architecture (MR 2267) 2024-02-26 20:55:49 +01:00
test_parse_apkindex.py Bump copyright to 2023 2023-01-22 19:18:06 +01:00
test_parse_arch.py test: Test pmb.parse.arch.machine_type_to_alpine (MR 2282) 2024-03-28 11:03:25 +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 pmb.parse.kconfig: Raise NonBugError on invalid kernel config (MR 2279) 2024-03-27 21:50:28 +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_proxy.py Fix preserving proxy variables (MR 2237) 2024-01-25 20:12:53 +00:00
test_qemu_running_processes.py Bump copyright to 2023 2023-01-22 19:18:06 +01:00
test_questions.py pmb.config: do not prompt for nonfree fw/userland (MR 2255) 2024-02-15 16:00:56 -08:00
test_run_core.py Fix preserving proxy variables (MR 2237) 2024-01-25 20:12:53 +00: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