From 8a0947255bebb92c88bf62706888a346c5ae4a64 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jos=C3=A9=20Luis=20Fern=C3=A1ndez=20Aguilera?= Date: Fri, 31 Jan 2025 11:16:36 +0100 Subject: [PATCH] Clean the code --- schedule/yam/agama_lvm.yaml | 1 + tests/yam/agama/generate_agama_profile.pm | 51 ----------------------- 2 files changed, 1 insertion(+), 51 deletions(-) delete mode 100644 tests/yam/agama/generate_agama_profile.pm diff --git a/schedule/yam/agama_lvm.yaml b/schedule/yam/agama_lvm.yaml index d362119c3f3c..6ce7732e467f 100644 --- a/schedule/yam/agama_lvm.yaml +++ b/schedule/yam/agama_lvm.yaml @@ -4,6 +4,7 @@ description: > Perform agama installation with LVM. schedule: - yam/agama/boot_agama + - yam/agama/import_agama_profile - yam/agama/patch_agama_tests - yam/agama/agama - installation/grub_test diff --git a/tests/yam/agama/generate_agama_profile.pm b/tests/yam/agama/generate_agama_profile.pm deleted file mode 100644 index 74efcbf1195d..000000000000 --- a/tests/yam/agama/generate_agama_profile.pm +++ /dev/null @@ -1,51 +0,0 @@ -## Copyright 2024 SUSE LLC -# SPDX-License-Identifier: GPL-2.0-or-later - -# Summary: Run Agama profile import on Live Medium -# Maintainer: QE YaST and Migration (QE Yam) - -use base Yam::Agama::patch_agama_base; -use strict; -use warnings; -use testapi qw(assert_script_run data_url get_required_var select_console script_run script_output get_test_data autoinst_url enter_cmd save_tmp_file); -use autoyast qw(expand_agama_profile upload_profile); - -sub run { - my $profile_name = "profile.jsonnet"; - #my $default_lib = get_test_data('yam/agama/auto/lib/default.libsonnet'); - #my $storage_lib = get_test_data('yam/agama/auto/lib/storage.libsonnet'); - #my $raw_profile = get_test_data('yam/agama/auto/sle.jsonnet'); - - #sleep(120); - - system("sudo", "zypper", "-n", "removerepo", "systemsmanagement_Agama_Devel"); - system("sudo", "zypper", "-n", "addrepo", "-f", "-G", - "https://download.opensuse.org/repositories/systemsmanagement:Agama:Devel/15.6/systemsmanagement:Agama:Devel.repo"); - system("sudo", "zypper", "-n", "install", "-f", "golang-github-google-jsonnet"); - my $casedir = get_required_var('CASEDIR'); - my $profile_content = `jsonnet $casedir/data/yam/agama/auto/sle.jsonnet`; - - - #select_console 'root-console'; - #script_run("mkdir lib"); - # Maybe we can use save_tmp_file instead of write the files in the guest, if we have jsonnet in the worker. - #script_run("cat > lib/default.libsonnet << EOF\n$default_lib\nEOF"); - #script_run("cat > lib/storage.libsonnet << EOF\n$storage_lib\nEOF"); - #script_run("cat > lib/sle.jsonnet << EOF\n$raw_profile\nEOF"); - - #my $parameters = get_required_var('AGAMA_PROFILE_PARAMETERS'); - #script_run("jsonnet $parameters sle.jsonnet > profile.jsonnet"); - - #my $content = script_output("cat sle.jsonnet"); - save_tmp_file($profile_name, $profile_content); - - my $profile_url = autoinst_url . "/files/$profile_name"; - upload_profile(path => $profile_name, profile => $profile_content); - - #my $profile = expand_agama_profile(get_required_var('AGAMA_PROFILE')); - #script_run("dmesg --console-off"); - #assert_script_run("agama profile import $profile_url", timeout => 300); - #script_run("dmesg --console-on"); -} - -1;