Script 'mail_helper' called by obssrc Hello community, here is the log from the commit of package os-autoinst for openSUSE:Factory checked in at 2026-11-20 14:49:05 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/os-autoinst (Old) and /work/SRC/openSUSE:Factory/.os-autoinst.new.1251 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "os-autoinst" Fri Nov 20 14:49:05 2026 rev:637 rq:1398913 version:5.1794515638.d6803d9 Changes: -------- --- /work/SRC/openSUSE:Factory/os-autoinst/os-autoinst.changes 2026-11-04 19:51:36.928848576 +0100 +++ /work/SRC/openSUSE:Factory/.os-autoinst.new.1251/os-autoinst.changes 2026-11-20 14:51:43.325066190 +0100 @@ -1,0 +2,10 @@ +Thu Nov 12 20:34:09 UTC 2026 - [email protected] + +- Update to version 5.1794515638.d6803d9: + * docs: Clarify select_console synchronization + * fix: disable pretty serial markers when command contains tabs + * docs: Describe BIOS lookup in backend_vars + * fix: Search bare BIOS file names in distro SeaBIOS locations + * fix: Have tests require openssl + +------------------------------------------------------------------- Old: ---- os-autoinst-5.1793797288.07b5ebe.obscpio New: ---- os-autoinst-5.1794515638.d6803d9.obscpio ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ os-autoinst-devel-test.spec ++++++ --- /var/tmp/diff_new_pack.Fvyki1/_old 2026-11-20 14:51:45.454156295 +0100 +++ /var/tmp/diff_new_pack.Fvyki1/_new 2026-11-20 14:51:45.456156379 +0100 @@ -18,7 +18,7 @@ %define short_name os-autoinst-devel Name: %{short_name}-test -Version: 5.1793797288.07b5ebe +Version: 5.1794515638.d6803d9 Release: 0 Summary: Test package for %{short_name} License: GPL-2.0-or-later ++++++ os-autoinst-openvswitch-test.spec ++++++ --- /var/tmp/diff_new_pack.Fvyki1/_old 2026-11-20 14:51:45.488157734 +0100 +++ /var/tmp/diff_new_pack.Fvyki1/_new 2026-11-20 14:51:45.490157818 +0100 @@ -19,7 +19,7 @@ %define name_ext -test %define short_name os-autoinst-openvswitch Name: %{short_name}%{?name_ext} -Version: 5.1793797288.07b5ebe +Version: 5.1794515638.d6803d9 Release: 0 Summary: test package for %{short_name} License: GPL-2.0-or-later ++++++ os-autoinst-test.spec ++++++ --- /var/tmp/diff_new_pack.Fvyki1/_old 2026-11-20 14:51:45.522159173 +0100 +++ /var/tmp/diff_new_pack.Fvyki1/_new 2026-11-20 14:51:45.524159257 +0100 @@ -19,7 +19,7 @@ %define name_ext -test %define short_name os-autoinst Name: %{short_name}%{?name_ext} -Version: 5.1793797288.07b5ebe +Version: 5.1794515638.d6803d9 Release: 0 Summary: test package for os-autoinst License: GPL-2.0-or-later ++++++ os-autoinst.spec ++++++ --- /var/tmp/diff_new_pack.Fvyki1/_old 2026-11-20 14:51:45.553160485 +0100 +++ /var/tmp/diff_new_pack.Fvyki1/_new 2026-11-20 14:51:45.555160569 +0100 @@ -17,7 +17,7 @@ Name: os-autoinst -Version: 5.1793797288.07b5ebe +Version: 5.1794515638.d6803d9 Release: 0 Summary: OS-level test automation License: GPL-2.0-or-later @@ -127,7 +127,7 @@ # The following line is generated from dependencies.yaml %define test_version_only_requires perl(Mojo::IOLoop::ReadWriteProcess) >= 0.28 # The following line is generated from dependencies.yaml -%define test_requires %build_requires %lua_support_requires %ocr_requires %python_support_requires %spellcheck_requires %test_base_requires %test_non_s390_requires %test_x86_64_aarch64_requires %yamllint_requires ffmpeg python3-Pillow-tk python3-gitlint python3-pytest python3-pytest-cov python3-pytest-mock python3-pytest-xdist +%define test_requires %build_requires %lua_support_requires %ocr_requires %python_support_requires %spellcheck_requires %test_base_requires %test_non_s390_requires %test_x86_64_aarch64_requires %yamllint_requires ffmpeg openssl python3-Pillow-tk python3-gitlint python3-pytest python3-pytest-cov python3-pytest-mock python3-pytest-xdist %ifnarch s390x # The following line is generated from dependencies.yaml %define devel_non_s390_requires ShellCheck ++++++ os-autoinst-5.1793797288.07b5ebe.obscpio -> os-autoinst-5.1794515638.d6803d9.obscpio ++++++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/os-autoinst-5.1793797288.07b5ebe/backend/qemu.pm new/os-autoinst-5.1794515638.d6803d9/backend/qemu.pm --- old/os-autoinst-5.1793797288.07b5ebe/backend/qemu.pm 2026-11-04 14:01:28.000000000 +0100 +++ new/os-autoinst-5.1794515638.d6803d9/backend/qemu.pm 2026-11-12 21:33:58.000000000 +0100 @@ -732,8 +732,13 @@ die 'No UEFI firmware can be found! Please specify UEFI_PFLASH_CODE/UEFI_PFLASH_VARS or BIOS or UEFI_BIOS or install an appropriate package' unless $vars->{UEFI_PFLASH_CODE}; } - # A non-absolute path is relative to /usr/share/qemu - $vars->{BIOS} = '/usr/share/qemu/' . $vars->{BIOS} if $vars->{BIOS} && $vars->{BIOS} !~ /^\//; + # A bare BIOS file name is searched in the known SeaBIOS locations of the distributions + if ($vars->{BIOS} && $vars->{BIOS} !~ /\//) { + my @candidates = map { "$_/$vars->{BIOS}" } @{bmwqemu::seabios_locations()}; + my $found = first { -e } @candidates; + die "'$vars->{BIOS}' not found in any of: @candidates, check BIOS\n" unless $found; + $vars->{BIOS} = $found; + } # Convert those vars to absolute paths and check for existence foreach my $attribute (qw(KERNEL INITRD BIOS)) { diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/os-autoinst-5.1793797288.07b5ebe/bmwqemu.pm new/os-autoinst-5.1794515638.d6803d9/bmwqemu.pm --- old/os-autoinst-5.1793797288.07b5ebe/bmwqemu.pm 2026-11-04 14:01:28.000000000 +0100 +++ new/os-autoinst-5.1794515638.d6803d9/bmwqemu.pm 2026-11-12 21:33:58.000000000 +0100 @@ -52,11 +52,18 @@ '/usr/share/OVMF/OVMF_CODE.fd', # Debian's ovmf package ); +our @seabios_locations = ( ## no critic (Variables::ProhibitPackageVars) + '/usr/share/seabios', # Fedora's seabios package + '/usr/share/qemu', # openSUSE qemu package +); + our %vars; ## no critic (Variables::ProhibitPackageVars) tie %vars, 'bmwqemu::tiedvars', %vars; sub ovmf_locations () { ($vars{UEFI_SECURE_BOOT} // 1) ? \@ovmf_locations : \@ovmf_locations_no_secure_boot } +sub seabios_locations () { \@seabios_locations } + sub result_dir () { 'testresults' } # deprecated functions, moved to log module diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/os-autoinst-5.1793797288.07b5ebe/container/os-autoinst_dev/Dockerfile new/os-autoinst-5.1794515638.d6803d9/container/os-autoinst_dev/Dockerfile --- old/os-autoinst-5.1793797288.07b5ebe/container/os-autoinst_dev/Dockerfile 2026-11-04 14:01:28.000000000 +0100 +++ new/os-autoinst-5.1794515638.d6803d9/container/os-autoinst_dev/Dockerfile 2026-11-12 21:33:58.000000000 +0100 @@ -42,6 +42,7 @@ jq \ ninja \ openssh-clients \ + openssl \ perl-base \ pkg-config \ procps \ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/os-autoinst-5.1793797288.07b5ebe/dependencies.yaml new/os-autoinst-5.1794515638.d6803d9/dependencies.yaml --- old/os-autoinst-5.1793797288.07b5ebe/dependencies.yaml 2026-11-04 14:01:28.000000000 +0100 +++ new/os-autoinst-5.1794515638.d6803d9/dependencies.yaml 2026-11-12 21:33:58.000000000 +0100 @@ -198,6 +198,7 @@ python3-gitlint: python3-Pillow-tk: ffmpeg: + openssl: main_requires: git-core: diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/os-autoinst-5.1793797288.07b5ebe/dist/rpm/os-autoinst.spec new/os-autoinst-5.1794515638.d6803d9/dist/rpm/os-autoinst.spec --- old/os-autoinst-5.1793797288.07b5ebe/dist/rpm/os-autoinst.spec 2026-11-04 14:01:28.000000000 +0100 +++ new/os-autoinst-5.1794515638.d6803d9/dist/rpm/os-autoinst.spec 2026-11-12 21:33:58.000000000 +0100 @@ -127,7 +127,7 @@ # The following line is generated from dependencies.yaml %define test_version_only_requires perl(Mojo::IOLoop::ReadWriteProcess) >= 0.28 # The following line is generated from dependencies.yaml -%define test_requires %build_requires %lua_support_requires %ocr_requires %python_support_requires %spellcheck_requires %test_base_requires %test_non_s390_requires %test_x86_64_aarch64_requires %yamllint_requires ffmpeg python3-Pillow-tk python3-gitlint python3-pytest python3-pytest-cov python3-pytest-mock python3-pytest-xdist +%define test_requires %build_requires %lua_support_requires %ocr_requires %python_support_requires %spellcheck_requires %test_base_requires %test_non_s390_requires %test_x86_64_aarch64_requires %yamllint_requires ffmpeg openssl python3-Pillow-tk python3-gitlint python3-pytest python3-pytest-cov python3-pytest-mock python3-pytest-xdist %ifnarch s390x # The following line is generated from dependencies.yaml %define devel_non_s390_requires ShellCheck diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/os-autoinst-5.1793797288.07b5ebe/distribution.pm new/os-autoinst-5.1794515638.d6803d9/distribution.pm --- old/os-autoinst-5.1793797288.07b5ebe/distribution.pm 2026-11-04 14:01:28.000000000 +0100 +++ new/os-autoinst-5.1794515638.d6803d9/distribution.pm 2026-11-12 21:33:58.000000000 +0100 @@ -185,11 +185,10 @@ bmwqemu::diag("Manual redirection to /dev/$testapi::serialdev is deprecated and might conflict with advanced serial markers. Use script_output() or use script_run() without the quiet parameter instead."); $level = $skip_pretty = 1; } - # Disable pretty serial markers for multiline commands where we will otherwise get an unexpected end marker per command - # note: We could try to split $cmd and wait for the end marker of the last command. However, splitting $cmd in the same way the shell - # does is complicated, e.g. we would have to handle multiline string literals. - if ($level > 1 && $cmd =~ m{\n.+$}) { - bmwqemu::diag('Temporarily disabling PRETTY_SERIAL_MARKER for command containing newline characters'); + # Disable pretty serial markers for commands with unsupported control whitespace + # (newlines cause multiple prompt markers; tabs trigger shell completion) + if ($level > 1 && $cmd =~ m{\t|\n.+$}) { + bmwqemu::diag('Temporarily disabling PRETTY_SERIAL_MARKER for command containing newline or tab characters'); $level = $skip_pretty = 1; } my ($str, $wait_pattern); diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/os-autoinst-5.1793797288.07b5ebe/doc/backend_vars.md new/os-autoinst-5.1794515638.d6803d9/doc/backend_vars.md --- old/os-autoinst-5.1793797288.07b5ebe/doc/backend_vars.md 2026-11-04 14:01:28.000000000 +0100 +++ new/os-autoinst-5.1794515638.d6803d9/doc/backend_vars.md 2026-11-12 21:33:58.000000000 +0100 @@ -113,7 +113,7 @@ | ARCH | x86_64\|i686\|aarch64\|... | depends on tested medium | Architecture of VM. | | APPEND | string | | Kernel options to pass when using the KERNEL variable, see https://qemu-project.gitlab.io/qemu/system/linuxboot.html | | ATACONTROLLER | see qemu -device ?, e. g. for SATA: ich9-ahci | | Controller for ATA devices, needed for connecting disks as SATA. | -| BIOS | string | | Set the filename for the BIOS. Relative paths are assumed to be relative to `/usr/share/qemu/`. | +| BIOS | string | | Set the filename or path for the BIOS. A bare file name is searched in `/usr/share/seabios` and `/usr/share/qemu`, the first existing match is used. | | BOOT_HDD_IMAGE | boolean | | enables boot from HDD_1 (BOOTFROM has higher priority) | | BOOT_MENU | boolean | undef | enables boot menu for selection of boot device | | BOOT_MENU_TIMEOUT | integer | 5000 | boot menu timeout in ms. Needs BOOT_MENU | diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/os-autoinst-5.1793797288.07b5ebe/t/05-distribution.t new/os-autoinst-5.1794515638.d6803d9/t/05-distribution.t --- old/os-autoinst-5.1793797288.07b5ebe/t/05-distribution.t 2026-11-04 14:01:28.000000000 +0100 +++ new/os-autoinst-5.1794515638.d6803d9/t/05-distribution.t 2026-11-12 21:33:58.000000000 +0100 @@ -277,6 +277,18 @@ is $exit_code, undef, 'Anchored match miss fails closed with undef instead of an unreliable generic fallback'; is scalar(@regexes_seen), 1, 'No second generic wait_serial is issued, preventing stale-marker mismatch and doubled timeout'; like $regexes_seen[0], qr/OA:DONE-\[0-9a-f\]\{4\}-\(\\d\+\)-OA(?:\\:|:)curl11logs/, 'The single wait_serial call uses the anchored fingerprint'; + + # poo#210042: Commands containing tabs fall back to legacy markers + @regexes_seen = (); + $mock_bmwqemu->redefine(diag => sub { }); + $mock_testapi->redefine(wait_serial => sub ($regexp, @) { + push @regexes_seen, $regexp; + my $hash = testapi::hashed_string("SRecho\tfoo" . $bmwqemu::default_timeout); + return "$hash-0-"; + }); + $exit_code = $d->script_run("echo\tfoo"); + is $exit_code, 0, 'script_run handles commands containing tab characters by falling back to legacy markers'; + unlike $regexes_seen[0], qr/OA:DONE-/, 'Level 3 pretty marker regex was bypassed for command with tabs'; }; subtest 'set expected serial and autoinst failures' => sub { @@ -424,12 +436,12 @@ } elsif ($case->{guard} == 2) { like $typed, qr/_OANM=1; /, $case->{msg}; - like $diag_msg, qr/Temporarily disabling.*newline characters/, 'info message shown'; + like $diag_msg, qr/Temporarily disabling.*newline/, 'info message shown'; } else { unlike $typed, qr/_OANM=1; /, $case->{msg}; unlike $diag_msg, qr/Manual redirection to \/dev\/ttyS0 is deprecated/, 'no deprecation warning for normal command'; - unlike $diag_msg, qr/Temporarily disabling.*newline characters/, 'no newline info shown'; + unlike $diag_msg, qr/Temporarily disabling.*newline/, 'no newline info shown'; } is $vars{PRETTY_SERIAL_MARKER}, 1, "PRETTY_SERIAL_MARKER is active again after '$case->{cmd}'"; } diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/os-autoinst-5.1793797288.07b5ebe/t/18-backend-qemu.t new/os-autoinst-5.1794515638.d6803d9/t/18-backend-qemu.t --- old/os-autoinst-5.1793797288.07b5ebe/t/18-backend-qemu.t 2026-11-04 14:01:28.000000000 +0100 +++ new/os-autoinst-5.1794515638.d6803d9/t/18-backend-qemu.t 2026-11-12 21:33:58.000000000 +0100 @@ -685,6 +685,9 @@ # set certain variables to test special handling for them that is not otherwise tested $bmwqemu::topdir = "$Bin/.."; # for dmi data $bmwqemu::vars{ARCH} = 'x86_64'; + my $seabios_dir = tempdir; + $seabios_dir->child('bios.bin')->spew(''); + @bmwqemu::seabios_locations = ($seabios_dir->to_string); $bmwqemu::vars{BIOS} = 'bios.bin'; $bmwqemu::vars{LAPTOP} = '1'; $bmwqemu::vars{BOOT_HDD_IMAGE} = 1; @@ -713,7 +716,7 @@ my @invoked_cmds; $backend_mock->redefine(runcmd => sub (@cmd) { push @invoked_cmds, join ' ', @cmd }); combined_like { $backend->start_qemu } qr{.*slirpvde --dhcp -s ./vde.ctl --port 87 started with pid 1.*not starting CPU}s, 'slirpvde started, DELAYED_START logged'; - like $bmwqemu::vars{BIOS}, qr{/.*/bios\.bin}, 'BIOS set to absolute location'; + is $bmwqemu::vars{BIOS}, $seabios_dir->child('bios.bin')->to_string, 'BIOS resolved to file in SeaBIOS location'; is $bmwqemu::vars{LAPTOP}, 'hp_elitebook_820g1', 'default laptop model assigned for LAPTOP=1'; is $bmwqemu::vars{BOOTFROM}, 'c', 'BOOTFROM defaults to "c" for BOOT_HDD_IMAGE=1'; is $bmwqemu::vars{HDDMODEL}, 'scsi-hd', 'HDDMODEL set for MULTIPATH=1'; @@ -805,7 +808,18 @@ $bmwqemu::vars{BIOS} = 'bios.bin'; combined_like { $backend->start_qemu } qr{.+}s, 'invoked with legacy BIOS'; $qemu_params = Mojo::Collection->new(\@qemu_params)->flatten->join(' '); - like $qemu_params, qr{bios /usr/share/qemu/bios\.bin}, 'bios parameter correctly configured'; + like $qemu_params, qr{bios \Q$seabios_dir\E/bios\.bin}, 'bios parameter correctly configured'; + @bmwqemu::seabios_locations = ('does not exist', $seabios_dir->child('later')->make_path->to_string); + $seabios_dir->child('later', 'bios.bin')->spew(''); + $bmwqemu::vars{BIOS} = 'bios.bin'; + combined_like { $backend->start_qemu } qr{.+}s, 'invoked with BIOS found in a later SeaBIOS location'; + $qemu_params = Mojo::Collection->new(\@qemu_params)->flatten->join(' '); + like $qemu_params, qr{bios \Q$seabios_dir\E/later/bios\.bin}, 'BIOS resolved to later SeaBIOS location'; + @bmwqemu::seabios_locations = ($seabios_dir->to_string); + $bmwqemu::vars{BIOS} = 'does-not-exist.bin'; + combined_like { throws_ok { $backend->start_qemu } qr{'does-not-exist\.bin' not found in any of: \Q$seabios_dir\E/does-not-exist\.bin, check BIOS}, 'dies on BIOS not found in any SeaBIOS location' } + qr/qemu version/si, 'expected logs until exception thrown (BIOS)'; + delete $bmwqemu::vars{BIOS}; subtest 'various error cases' => sub { my %initial_vars = %bmwqemu::vars; diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/os-autoinst-5.1793797288.07b5ebe/testapi.pm new/os-autoinst-5.1794515638.d6803d9/testapi.pm --- old/os-autoinst-5.1793797288.07b5ebe/testapi.pm 2026-11-04 14:01:28.000000000 +0100 +++ new/os-autoinst-5.1794515638.d6803d9/testapi.pm 2026-11-12 21:33:58.000000000 +0100 @@ -1706,15 +1706,29 @@ Select the named console for further C<testapi> interaction (send_text, send_key, wait_screen_change, ...) -If this the first time, a test selects this console, the distribution -will get a call into activate_console('root-console', $console_obj, @args) to -make sure to actually log in root. For the backend it's just a C<tty> -object (in this example) - so it will ensure the console is active, -but to setup the root shell on this console, the distribution needs -to run test code. +If this is the first time a test selects this console, the distribution +will get a call into C<activate_console('root-console', $console_obj, @args)> to +make sure to actually log in root. For the backend it is just a C<tty> +object (in this example) - so it will trigger the console selection (e.g. by +sending C<ctrl-alt-f<n>> key events to the system under test), but to set up the +root shell on this console, the distribution needs to run test code. -After the console selection the distribution callback -C<$distri->console_selected> is called with C<@args>. +Note that C<select_console> does B<not> synchronize with the guest operating +system out of the box. For consoles like C<tty-console>, the guest OS / display +server switches virtual terminals asynchronously, and C<select_console> returns +immediately after dispatching the switching key events. If actions such as +C<enter_cmd> or C<type_string> are run immediately without synchronization, +keystrokes might be lost or sent to the previous console while the switch is +still in progress. + +After console selection, the distribution callback C<$distri->console_selected> +is called with C<@args>. By default, this callback does nothing. Synchronization +can be achieved either by explicitly verifying readiness in the test (e.g. with +C<assert_screen>), or by overriding C<console_selected> in the distribution. For +example, in C<os-autoinst-distri-opensuse>, +C<susedistribution::console_selected> automatically calls C<assert_screen> with +the console's tag to ensure that the console is visible and ready before test +execution continues. =cut ++++++ os-autoinst.obsinfo ++++++ --- /var/tmp/diff_new_pack.Fvyki1/_old 2026-11-20 14:51:46.988221218 +0100 +++ /var/tmp/diff_new_pack.Fvyki1/_new 2026-11-20 14:51:46.991221345 +0100 @@ -1,5 +1,5 @@ name: os-autoinst -version: 5.1793797288.07b5ebe -mtime: 1793797288 -commit: 07b5ebef9996b8cc1de8decd8ccbd73cd547c6f7 +version: 5.1794515638.d6803d9 +mtime: 1794515638 +commit: d6803d976ec3e254b432e0e446d814170e31ea7f
