3 Dec
2020
3 Dec
'20
11:56
El miércoles, 2 de diciembre de 2020 10:00:06 (WET) Ladislav Slezak escribió:
Accidentally I found another problem, this time in the kdump module.
If you need to mock the AutoYaST mode in the tests you would do:
allow(Yast::Mode).to receive(:autoinstallation).and_return(true)
This looks right, doesn't it? Um.... unfortunately it's wrong. The method is surprisingly called "Yast::Mode.autoinst".
Yes, I agree, the name is surprising (well, I am used to it, but...). JFYI, there is a Yast::Mode.auto which covers autoinstallation and autoupgrade. Regards, Imo -- Imobach González Sosa YaST Team at SUSE LLC https://imobachgs.github.io/