From c7550425417a915b634a60582a922a584d0e6c7e Mon Sep 17 00:00:00 2001 From: Josef Reidinger Date: Thu, 19 Dec 2024 19:36:15 +0100 Subject: [PATCH] try to fix ruby tests in CI --- service/test/agama/storage/manager_test.rb | 2 ++ 1 file changed, 2 insertions(+) diff --git a/service/test/agama/storage/manager_test.rb b/service/test/agama/storage/manager_test.rb index ed357566b4..4b8b665d8c 100644 --- a/service/test/agama/storage/manager_test.rb +++ b/service/test/agama/storage/manager_test.rb @@ -55,6 +55,8 @@ allow(Agama::DBus::Clients::Software).to receive(:instance).and_return(software) allow(Bootloader::FinishClient).to receive(:new).and_return(bootloader_finish) allow(Agama::Security).to receive(:new).and_return(security) + # mock writting config as proposal call can do storage probing, which fails in CI + allow_any_instance_of(Agama::Storage::Bootloader).to receive(:write_config) allow(Agama::HTTP::Clients::Scripts).to receive(:new).and_return(scripts_client) allow(Yast::Installation).to receive(:destdir).and_return(File.join(tmp_dir, "mnt")) stub_const("Agama::Storage::Finisher::CopyLogsStep::SCRIPTS_DIR",