Skip to content

Commit

Permalink
Merge pull request os-autoinst#20640 from grisu48/fake_ok_version
Browse files Browse the repository at this point in the history
Introduce BCI_OS_VERSION
  • Loading branch information
grisu48 authored Nov 14, 2024
2 parents 8030cd7 + 2ab4764 commit 3a9a2a0
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
7 changes: 7 additions & 0 deletions tests/containers/bci_test.pm
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,13 @@ sub run {

$error_count = 0;

# For some containers we need to fake the OS version to distinguish them
my $os_version = get_var('BCI_OS_VERSION');
if ($os_version) {
script_run("export OS_VERSION=$os_version");
validate_script_output('echo $OS_VERSION', sub { m/$os_version/ });
}

my $engine = $args->{runtime};
my $bci_devel_repo = get_var('BCI_DEVEL_REPO');
my $bci_tests_repo = get_required_var('BCI_TESTS_REPO');
Expand Down
1 change: 1 addition & 0 deletions variables.md
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@ BCI_TARGET | string | ibs-cr | Container project to be tested. `ibs-cr` is the C
BCI_SKIP | boolean | false | Switch to disable BCI test runs. Necessary for fine-granular test disablement
BCI_PREPARE | boolean | false | Launch the bci_prepare step again. Useful to re-initialize the BCI-Test repo when using a different BCI_TESTS_REPO
BCI_VIRTUALENV | boolean | false | Use a virtualenv for pip dependencies in BCI tests
BCI_OS_VERSION | string | | Set the environment variable OS_VERSION to this value, if present
BOOTLOADER | string | grub2 | Which bootloader is used by the image (and in the future also: will be selected during installation)
BTRFS | boolean | false | Indicates btrfs filesystem. Deprecated, use FILESYSTEM instead.
BUILD | string | | Indicates build number of the product under test.
Expand Down

0 comments on commit 3a9a2a0

Please sign in to comment.