Repository navigation
feat: Add NVIDIA SLES 16.1 kernel validation module for installations #27175
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,4 +1,5 @@ | ||
| --- | ||
| kernel_version: 6.12.0-160100.1-nvidia64kb | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. agama_sle_nvidia_immutable.yaml |
||
| os_release: | ||
| NAME: 'SLES' | ||
| PRETTY_NAME: 'SUSE Linux Enterprise Server %VERSION%' | ||
|
|
@@ -12,17 +13,17 @@ os_release: | |
| repos: | ||
| - name: SLES-NVIDIA-%VERSION% | ||
| alias: SUSE_Linux_Enterprise_Server_for_NVIDIA_%VERSION%_%ARCH%:SLES-NVIDIA-%VERSION% | ||
| uri: http://openqa.suse.de/assets/repo/SLES-%VERSION%-%ARCH%-Build%BUILD%/ | ||
| uri: http://openqa.suse.de/assets/repo/SLES-NVIDIA-%VERSION%-%ARCH%-Build%BUILD% | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. you are missing the final |
||
| enabled: 'Yes' | ||
| filter: name | ||
| - name: SLES-NVIDIA-%VERSION%-Debug | ||
| alias: SUSE_Linux_Enterprise_Server_for_NVIDIA_%VERSION%_%ARCH%:SLES-NVIDIA-%VERSION%-Debug | ||
| uri: http://openqa.suse.de/assets/repo/SLES-%VERSION%-%ARCH%-Debug-Build%BUILD%/ | ||
| uri: http://openqa.suse.de/assets/repo/SLES-NVIDIA-%VERSION%-%ARCH%-Build%BUILD% | ||
| enabled: 'No' | ||
| filter: name | ||
| - name: SLES-NVIDIA-%VERSION%-Source | ||
| alias: SUSE_Linux_Enterprise_Server_for_NVIDIA_%VERSION%_%ARCH%:SLES-NVIDIA-%VERSION%-Source | ||
| uri: http://openqa.suse.de/assets/repo/SLES-%VERSION%-%ARCH%-Source-Build%BUILD%/ | ||
| uri: http://openqa.suse.de/assets/repo/SLES-NVIDIA-%VERSION%-%ARCH%-Build%BUILD% | ||
| enabled: 'No' | ||
| filter: name | ||
| selinux: | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,25 @@ | ||
| # SUSE's openQA tests | ||
| # | ||
| # Copyright 2026 SUSE LLC | ||
| # SPDX-License-Identifier: FSFAP | ||
|
|
||
| # Summary: Validate the kernel version of the installed system. | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Validate the installed system has a NVIDIA-specific kernel. |
||
|
|
||
| # Summary: Validate the kernel version of the installed system. | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. line6 and line8 are identical, do we really need that? thanks. |
||
| # Compare the output of "uname -r" with the kernel version from test data. | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. we don't use test data in the code. so we can rephrase it.
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. no need for any comment about specific implementation repeating the command.
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. with the kernel version s/from test data/'nvidia64kb'/ |
||
| # Maintainer: QE Installation and Migration (QE Iam) <none@suse.de> | ||
|
|
||
| use Mojo::Base 'consoletest'; | ||
| use testapi; | ||
| use Test::Assert ':assert'; | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. use |
||
|
|
||
| sub run { | ||
| select_console 'root-console'; | ||
|
|
||
| my $kernel = script_output('uname -r'); | ||
|
|
||
| assert_matches(qr/^.+-nvidia64kb$/, $kernel, | ||
| "Wrong kernel version '. Got '$kernel'"); | ||
|
Comment on lines
+19
to
+22
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. assert_matches(qr/^.+-nvidia64kb$/, script_output('uname -r'), "The installed system doesn't have a NVIDIA-specific kernel"); |
||
| } | ||
|
|
||
| 1; | ||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think you'd better create a new schedule file for Nvidia test, it seems your module validate_kernel_version only for Nvidia test.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Same for other schedule files.