pungi/tests
Qixiang Wan b81e94e808 image-build: add arch name(s) in image config file name
Pungi write image config file with name of <format>-<name>.cfg, if there
are two or more image configs present for different arches under the same
variant and with same format & name, the config file can be overwritten,
and result in invalid image conf file.

Example:

image_build = {
    '^Server$': [
        {
            'image-build': {
                'format': [('qcow2', 'qcow2'),],
                'name': 'fedora-guest-image',
                'target': 'guest-fedora-26-image',
                'version': '26',
                'ksurl': "git://git.example.com/ks.git?fedora#HEAD",
                'kickstart': "fedora-26-kvm.ks",
                'ksversion': 'f26',
                'distro': 'fedora-26',
                'disk-size': '10',
                'arches': ['x86_64'],
                'repo': ["http://example.com/linux/fedora/26/Everything/x86_64/os", ]
            }
        },
        {
           'image-build': {
                'format': [('qcow2', 'qcow2'),],
                'name': 'fedora-guest-image',
                'target': 'guest-fedora-26-image',
                'version': '26',
                'ksurl': "git://git.example.com/ks.git?fedora#HEAD",
                'kickstart': "fedora-26-kvm.ks",
                'ksversion': 'f26',
                'distro': 'fedora-26',
                'disk-size': '10',
                'arches': ['ppc64le'],
            }
        },
    ],
}

In this case, config file "qcow2_guest-fedora-26-image.cfg" will be
created for both x86_64 and ppc64le under the same variant dir, and
there is a high chance it will be over-written while Pungi creating the
koji task. We can add arch name(s) in config filename to avoid that.

Signed-off-by: Qixiang Wan <qwan@redhat.com>
2017-09-03 23:51:08 +08:00
..
data gather: Add debugsource package to tests 2017-07-27 08:31:39 +02:00
fixtures gather: Fix excluding debugsource packages from input list 2017-07-27 08:50:21 +02:00
__init__.py Fix test data, improve Makefile. 2015-06-25 08:02:57 -04:00
helpers.py Open files as binary where needed 2017-08-28 13:47:18 +02:00
test_arch.py remove the dependency of rpmUtils 2017-07-26 11:23:16 +02:00
test_buildinstall.py buildinstall: No copy if task fails 2017-08-28 13:43:32 +02:00
test_checks.py checks: Stop looking for imports 2017-08-14 14:57:06 +02:00
test_compose.py Create temporary dirs under compose's workdir 2017-01-11 15:25:47 +08:00
test_compose.sh tests: Fix test_compose.sh paths 2017-08-10 09:28:36 +02:00
test_comps_wrapper.py gather: nodeps should take packages from comps groups 2017-07-11 10:21:13 +02:00
test_config_validate_script.py Fix PhaseLoggerMixin in case of compose has _logger = None 2016-11-30 14:41:02 +08:00
test_config.py pkgset: Allow populating packages from multiple koji tags 2017-06-29 08:27:34 +02:00
test_createiso_phase.py iso-wrapper: Handle wrong implant md5 2017-03-07 09:58:14 +01:00
test_createiso_script.py Remove executable permissions on test scripts 2016-10-25 10:42:16 +00:00
test_createrepo_wrapper.py Remove executable permissions on test scripts 2016-10-25 10:42:16 +00:00
test_createrepophase.py createrepo: Don't use existing metadata with deltas 2017-07-14 14:29:16 +02:00
test_extra_files_phase.py extra-files: Nice error message on missing RPM 2016-11-10 09:38:50 +01:00
test_gather_method_deps.py gather: Clean up method deps 2017-04-11 15:46:34 +02:00
test_gather_method_nodeps.py gather: nodeps should take packages from comps groups 2017-07-11 10:21:13 +02:00
test_gather_phase.py gather: Remove handling of impossible state 2017-05-02 10:12:16 +02:00
test_gather.py gather: Only parse pungi log once 2017-08-09 11:04:14 +02:00
test_imagebuildphase.py image-build: add arch name(s) in image config file name 2017-09-03 23:51:08 +08:00
test_imagechecksumphase.py checksum: Refactor creating checksum files 2017-07-17 08:26:51 +02:00
test_initphase.py init: Warn when variants mentions non-existing comps group 2017-04-11 15:46:34 +02:00
test_iso_wrapper.py iso-wrapper: Capture debug information for mounting 2017-05-29 13:18:07 +02:00
test_koji_wrapper.py koji-wrapper: Stop mangling env variables 2017-06-05 12:46:45 +02:00
test_linker.py Remove executable permissions on test scripts 2016-10-25 10:42:16 +00:00
test_liveimagesphase.py unify repo and repo_from options 2017-03-29 10:12:32 +08:00
test_livemediaphase.py unify repo and repo_from options 2017-03-29 10:12:32 +08:00
test_lorax_wrapper.py lorax-wrapper: Put all log files into compose logs 2016-11-09 09:37:00 +01:00
test_media_split.py Include phase name in log for some phases 2016-11-23 16:47:22 +08:00
test_metadata.py extra-files: Allow configuring used checksums 2017-04-20 09:28:09 +02:00
test_notifier.py notification: Allow specifying multiple scripts 2017-06-29 08:30:56 +02:00
test_osbs_phase.py osbs: Config validation should accept a list 2017-06-23 12:39:48 +02:00
test_ostree_installer_phase.py ostree-installer: Clean up output dir 2017-06-15 08:17:07 +02:00
test_ostree_phase.py ostree: Simplify configuration 2017-08-14 14:53:22 +02:00
test_ostree_script.py ostree: Update tests for no ostree init 2017-06-27 07:46:35 +02:00
test_patch_iso.py Add a script for modifying ISO images 2017-03-21 07:55:19 +01:00
test_pathmatch.py Remove executable permissions on test scripts 2016-10-25 10:42:16 +00:00
test_phase_base.py tests: use unittest2 if available 2017-06-13 08:55:41 +02:00
test_pkgset_pkgsets.py gather: Log tag from which we pulled a package 2017-06-19 10:51:37 +02:00
test_pkgset_source_koji.py pkgset: Allow populating packages from multiple koji tags 2017-06-29 08:27:34 +02:00
test_repoclosure_wrapper.py repoclosure: Don't run build deps check 2017-01-30 10:16:03 +01:00
test_scm.py scm-wrapper: Allow running command after git clone 2017-08-10 15:32:24 +02:00
test_test_phase.py repoclosure: Allow aborting compose when repoclosure fails 2017-08-07 15:17:33 +02:00
test_unified_isos.py unified-iso: Only link to non-empty variants 2017-07-31 15:15:17 +02:00
test_util.py Report warning when config sections are not used 2017-08-21 09:07:10 +02:00