debian-forge/stages/test
Achilleas Koutsou 0968ee8d81 stages/grub2: add compat_version for fixed behaviour
For the terminal_input, terminal_output, and serial variables in the
GRUB_CFG_TEMPLATE, the keys were not set when those variables were not
defined in the options.  This caused the template variables to show up
in the final file itself, which could break the config.  For example,
the following line was being generated for one of our images:

    serial --speed=115200 --unit=0 --word=8 --parity=no --stop=1${terminal_input}${terminal_output}

Setting the keys to an empty string when they're not defined solves the
issue.

Since this is a stage behaviour change, the new behaviour is toggled by
an option that maintains backwards compatibility when not set.
This introduces a new convention of adding a `compat_version` number to
the stage options to control the behaviour.  The value defaults to 1,
which is the old (broken) behaviour.  Manifest generators should always
set it to 2 to get the correct behaviour.
2025-06-13 14:14:57 +02:00
..
conftest.py stages/org.osbuild.tar: implement disk-full test 2024-10-26 20:04:37 +02:00
test_autotailor.py Test/autotailor: fix Python 3.6 compatibility 2024-11-25 09:12:19 +01:00
test_bootc_install_config.py test/bootc_install_config: parse config for result 2024-08-21 19:26:31 +02:00
test_bootc_install_to_fs.py stages: fix test values for "images" inputs 2024-04-29 14:11:44 +02:00
test_bootupd.py ostree: add convenience function for using default OSTree deployment 2024-02-07 18:50:38 -05:00
test_btrfs_subvol.py stages: fix btrfs subvolume creation under subdirectories 2024-09-13 11:23:35 +02:00
test_chrony.py stages: add unit tests for chrony stage 2025-04-11 09:00:42 +02:00
test_cloud-init.py org.osbuild.cloud-init: add new datasources and network section 2025-02-15 10:38:12 +01:00
test_container_deploy.py feat: add remove-signatures option to container-deploy stage 2024-10-29 14:23:02 +01:00
test_containers_storage_conf.py stages: replace toml imports with our util module 2024-08-21 19:26:31 +02:00
test_containers_unit_create.py test: add new containers.unit.create options in test 2024-12-02 12:55:30 +01:00
test_coreos_live_artifacts_mono.py stages/coreos.live-artifacts: add erofs support 2025-02-11 17:41:35 -05:00
test_coreos_platform.py stages: add test for coreos.platform generate_console_settings_file 2024-02-28 10:37:01 +01:00
test_dmverity.py stages: add stage for creating dm-verity partitions 2024-07-03 16:54:32 +02:00
test_dnf4_sbom_spdx.py Add org.osbuild.dnf4.sbom.spdx stage 2024-09-18 12:26:36 +02:00
test_dnf5_sbom_spdx.py Add org.osbuild.dnf5.sbom.spdx stage 2024-12-18 05:46:45 +01:00
test_dnf_module_config.py stage/dnf.module-config: remove path 2025-01-22 18:03:21 +01:00
test_dracut.py stages: replace "logger" binary in the dracut chroot 2025-02-12 15:44:04 +00:00
test_dracut_conf.py stages: ensure dirs for dracut-conf stage are available 2025-02-24 13:18:33 +01:00
test_erofs.py stages/erofs: Add exclude_paths support 2025-06-11 20:22:23 +02:00
test_groups.py stages: remove test_schema_supports_bootc_style_mounts tests 2024-05-03 11:26:22 +02:00
test_grub2.py stages/grub2: add compat_version for fixed behaviour 2025-06-13 14:14:57 +02:00
test_grub2_inst.py stages/grub2.inst: grub2-mkimage in tmpdir 2025-03-08 02:30:32 +01:00
test_grub2_iso_legacy.py stages: add test for the new org.grub2.iso.legacy stage 2025-01-30 08:29:43 +01:00
test_grub2_legacy.py Stages/grub2.legacy: make config options a subset of grub2 stage 2024-02-21 17:51:28 +01:00
test_gunzip.py Tests: Add unit tests for org.osbuild.gunzip stage 2024-08-02 08:48:06 +02:00
test_gzip.py stages: add small unit test for the gzip stage 2024-03-04 11:18:13 +01:00
test_hmac.py stages: add new stage org.osbuild.hmac 2025-04-02 13:06:47 +02:00
test_insights_client_conf.py stages: add insights-client config stage 2025-03-17 19:34:16 +01:00
test_kernel_cmdline.py stages/kernel-cmdline: add max cmdline option 2025-02-11 09:16:17 +00:00
test_kickstart.py stages/kickstart: post-installation scripts 2025-05-14 09:06:40 +02:00
test_machine-id.py stages/test: introduce 'stage_schema' fixture 2024-01-31 17:18:52 +01:00
test_mkdir.py org.osbuild.mkdir: support creating dirs on mounts 2024-10-25 16:22:19 +02:00
test_mkfs_btrfs.py general: Fix linter issues across the codebase 2024-08-26 11:59:46 -07:00
test_mkfs_ext4.py stages/mkfs.ext4: disable lazy_init 2025-01-17 19:11:38 +01:00
test_mkfs_fat.py general: Fix linter issues across the codebase 2024-08-26 11:59:46 -07:00
test_mkfs_xfs.py general: Fix linter issues across the codebase 2024-08-26 11:59:46 -07:00
test_mkswap.py stages: add a new mkswap stage 2024-09-02 15:27:32 +02:00
test_ostree_post_copy.py stages/test: introduce 'stage_schema' fixture 2024-01-31 17:18:52 +01:00
test_ovf.py stages: add tests to org.osbuild.ovf 2025-02-12 11:24:47 +01:00
test_qemu.py stages: add basic qemu cmdline test 2025-02-17 13:21:40 +01:00
test_rhsm.py Stages/rhsm: add unit test for the stage schema 2025-04-11 15:39:20 +02:00
test_rpm.py test/rpm: add schema validation test for boot_root 2025-03-13 13:47:43 +01:00
test_selinux.py org.osbuild.selinux: support for specifying where file_contexts comes from 2024-11-14 17:49:26 +01:00
test_skopeo.py stages/test: Check that remove_signatures is passed to skopeo-copy 2024-05-01 00:23:02 +02:00
test_squashfs.py stages/squashfs: Add exclude_paths support 2025-06-11 20:22:23 +02:00
test_systemd.py stages/test: introduce 'stage_module' fixture 2024-01-31 17:18:52 +01:00
test_systemd_unit_create.py stages/systemd.unit.create: support StandardOutput 2025-04-08 12:43:28 +02:00
test_tar.py stages/tar: allow chosen compression 2025-06-03 18:18:23 +02:00
test_tuned.py Stages/test/tuned: handle "improved" jsonschema messages 2025-01-06 11:53:46 -08:00
test_users.py test: update users stage unit tests 2024-11-26 23:35:04 +01:00
test_waagent_conf.py Stages/waagent.conf: support additional options 2025-04-14 08:18:04 +02:00
test_xz.py stages/test: introduce 'stage_schema' fixture 2024-01-31 17:18:52 +01:00
test_zip.py stages(zip): add test for zip stage 2024-04-04 13:54:34 +02:00
test_zipl_inst.py test: add simple zipl_inst tests 2024-02-07 18:08:44 -05:00
test_zstd.py stages/test: introduce 'stage_schema' fixture 2024-01-31 17:18:52 +01:00