Skip to content

Commit

Permalink
Add php8 tests for sles15sp5
Browse files Browse the repository at this point in the history
https://progress.opensuse.org/issues/119530
Ues yaml schedule to load the tests
  • Loading branch information
rfan1 committed Nov 4, 2022
1 parent 1425389 commit ecf551f
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 2 deletions.
4 changes: 3 additions & 1 deletion schedule/qam/common/mau-webserver.yaml
Expand Up @@ -20,7 +20,7 @@ schedule:
- console/php_postgresql
- console/php_timezone
- console/flask
- '{{ version_specific }}'
- '{{version_specific}}'
conditional_schedule:
version_specific:
VERSION:
Expand All @@ -46,6 +46,8 @@ conditional_schedule:
- console/django
15-SP4:
- console/django
15-SP5:
- console/django
tumbleweed:
- console/django
- console/rails
2 changes: 2 additions & 0 deletions tests/console/curl_https.pm
Expand Up @@ -20,13 +20,15 @@ use warnings;
use utils qw(clear_console ensure_serialdev_permissions);
use Utils::Architectures;
use Utils::Backends;
use serial_terminal 'select_serial_terminal';

# test for bug https://bugzilla.novell.com/show_bug.cgi?id=598574
sub run {

# On s390x platform, make sure that non-root user has
# permissions for $serialdev to get openQA work properly.
# Please refer to bsc#1195620
select_serial_terminal; # Switch to root user at first if not
ensure_serialdev_permissions if (is_s390x);

# Switch to user console: exclude ipmi backends as under non-root user session the $serialdev can not be found
Expand Down
18 changes: 17 additions & 1 deletion tests/console/php_version.pm
Expand Up @@ -17,13 +17,29 @@ use testapi;
use serial_terminal 'select_serial_terminal';
use apachetest;
use version_utils qw(is_leap is_sle php_version);
use registration qw(add_suseconnect_product get_addon_fullname);
use registration qw(add_suseconnect_product remove_suseconnect_product get_addon_fullname);

sub run {
select_serial_terminal;

add_suseconnect_product(get_addon_fullname('script'), (is_sle('<15') ? '12' : undef)) if (is_sle('<15-sp4'));

# On sles15sp5, due to bus#1204824, the package "sle-module-web-scripting-release" is pre-installed,
# which tricks SUSEConnect to assume that this module is activated which it isn't, so add below
# workaround
if (is_sle('=15-SP5')) {
if (script_run("suseconnect -l | grep 'Web and Scripting Module'| grep '(Activated)'") == 0) {
if (script_run('zypper se php8') == 104) {
record_soft_failure 'bsc#1204824 - php8 packages are not available on sles15sp5';
remove_suseconnect_product('sle-module-web-scripting');
add_suseconnect_product('sle-module-web-scripting');
}
}
else {
add_suseconnect_product('sle-module-web-scripting');
}
}

my ($php, $php_pkg, $php_ver) = php_version();

setup_apache2(mode => uc('php' . $php_ver));
Expand Down

0 comments on commit ecf551f

Please sign in to comment.