debian-forge/stages/test
Achilleas Koutsou f2ab07cf85 stages/grub2.inst: grub2-mkimage in tmpdir
Use a temporary directory for the output of grub2-mkimage.

This makes the stage clean up the grub2-core.img from the build root
after its done.  It also has the nice side-effect that unit tests that
call the stage are independent.  Previously, a bug in the stage *might*
have been missed if a certain configuration of the stage was not
creating the grub2-core.img.  One unit test could create an image at the fixed path
(/var/tmp/grub2-core.img) and then another one could call the stage with
the buggy configuration but the `shutil.copyfile()` call at the end of
the stage would succeed because it would find the image from the
previous stage run.

To accommodate for this change, the unit test with the mocked run call
is adjusted to intercept the random tmp output path and use it to create
a fake file for the stage to succeed.
2025-03-08 02:30:32 +01: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_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 erofs: Add ability to set the cluster size 2025-01-03 12:05:56 +01: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: extend default config options 2024-02-20 19:28:43 +01: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_kernel_cmdline.py stages/kernel-cmdline: add max cmdline option 2025-02-11 09:16:17 +00:00
test_kickstart.py kickstart: Drop ostree signature verification flag 2024-12-18 16:34:30 -08: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_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_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 .swap units 2025-03-04 20:34:43 +01:00
test_tar.py stages/test/test_tar: fix regex to be more robust 2024-10-26 20:04:37 +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_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