Skip to content

scriptgen.py: Declare iso_folder to avoid arithmetic evaluation of flavor names#373

Merged
mergify[bot] merged 1 commit into
os-autoinst:masterfrom
czerw:fix-64kb
Jun 17, 2026
Merged

scriptgen.py: Declare iso_folder to avoid arithmetic evaluation of flavor names#373
mergify[bot] merged 1 commit into
os-autoinst:masterfrom
czerw:fix-64kb

Conversation

@czerw

@czerw czerw commented Jun 17, 2026

Copy link
Copy Markdown
Contributor

Without declare -A, bash evaluates array keys as arithmetic expressions. Flavor names like Online-Kernel-64kb-Baremetal cause value too great for base errors.

If is added flavor <flavor name="Online-Kernel-64kb-Baremetal" iso="Online" sha="512"/> to project definition, it will fail with following error (variable content is treated as numerical):

make test_update_before_files
.
.
ibs/SUSE:SLFO:Products:SLES:16.1:TEST/base//print_rsync_iso.sh: line 35: Online-Kernel-64kb: value too great for base (error token is "64kb")
make: *** [Makefile:38: test_update_before_files] Error 1

Reference: https://progress.opensuse.org/issues/198665
MR with new flavors: https://gitlab.suse.de/openqa/openqa-trigger-from-ibs-plugin/-/merge_requests/287

…avor names

Without declare -A, bash evaluates array keys as arithmetic expressions.
Flavor names like `Online-Kernel-64kb-Baremetal` cause `value too great for
base`
errors.
@czerw czerw marked this pull request as ready for review June 17, 2026 06:16

@jlausuch jlausuch left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@mergify mergify Bot merged commit 06f1920 into os-autoinst:master Jun 17, 2026
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants