How to use set_unknown_nmi_panic method in lisa

Best Python code snippet using lisa_python

kdump.py

Source:kdump.py Github

copy

Full Screen

...276 This method restarts the kdump service.277 """278 service = self.node.tools[Service]279 service.restart_service(self._get_kdump_service_name())280 def set_unknown_nmi_panic(self) -> None:281 """282 /proc/sys/kernel/unknown_nmi_panic:283 The value in this file affects behavior of handling NMI. When the value is284 non-zero, unknown NMI is trapped and then panic occurs. If need to dump the285 crash, the value should be set 1. Some architectures don't provide architected286 NMIs,such as ARM64, the system doesn't have this file, we don't need to set287 either.288 """289 nmi_panic_file = PurePath("/proc/sys/kernel/unknown_nmi_panic")290 if self.node.shell.exists(nmi_panic_file):291 sysctl = self.node.tools[Sysctl]292 sysctl.write("kernel.unknown_nmi_panic", "1")293 @retry(exceptions=LisaException, tries=60, delay=1)294 def _check_kexec_crash_loaded(self) -> None:...

Full Screen

Full Screen

Automation Testing Tutorials

Learn to execute automation testing from scratch with LambdaTest Learning Hub. Right from setting up the prerequisites to run your first automation test, to following best practices and diving deeper into advanced test scenarios. LambdaTest Learning Hubs compile a list of step-by-step guides to help you be proficient with different test automation frameworks i.e. Selenium, Cypress, TestNG etc.

LambdaTest Learning Hubs:

YouTube

You could also refer to video tutorials over LambdaTest YouTube channel to get step by step demonstration from industry experts.

Run lisa automation tests on LambdaTest cloud grid

Perform automation testing on 3000+ real desktop and mobile devices online.

Try LambdaTest Now !!

Get 100 minutes of automation test minutes FREE!!

Next-Gen App & Browser Testing Cloud

Was this article helpful?

Helpful

NotHelpful