Skip to content

Commit

Permalink
Merge pull request #20316 from jknphy/agama_vars
Browse files Browse the repository at this point in the history
Add env var for agama product selection
  • Loading branch information
jknphy authored Sep 30, 2024
2 parents 7dbced9 + ab22126 commit 53efc6f
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions tests/yam/agama/agama.pm
Original file line number Diff line number Diff line change
Expand Up @@ -17,12 +17,16 @@ use testapi qw(

sub run {
my $self = shift;

my @env_vars = ();
push(@env_vars, "AGAMA_DASD=" . get_var('AGAMA_DASD')) if get_var('AGAMA_DASD');
push(@env_vars, "AGAMA_PRODUCT=" . get_var('AGAMA_PRODUCT')) if get_var('AGAMA_PRODUCT');

my $test = get_required_var('AGAMA_TEST');
my $configure_dasd = get_var('CONFIGURE_DASD');
my $reboot_page = $testapi::distri->get_reboot_page();

script_run("dmesg --console-off");
assert_script_run("CONFIGURE_DASD=$configure_dasd /usr/share/agama/system-tests/" . $test . ".cjs", timeout => 1200);
assert_script_run(join(' ', @env_vars) . " /usr/share/agama/system-tests/" . $test . ".cjs", timeout => 1200);
script_run("dmesg --console-on");

Yam::Agama::agama_base::upload_agama_logs();
Expand Down

0 comments on commit 53efc6f

Please sign in to comment.