(self)
| 523 | self._version: tuple[int, ...] = () |
| 524 | |
| 525 | def get_kernelversion(self) -> str: |
| 526 | return subprocess.run( |
| 527 | ['make', '-s', 'kernelversion'], |
| 528 | capture_output=True, |
| 529 | check=True, |
| 530 | cwd=self.location, |
| 531 | text=True, |
| 532 | ).stdout.strip() |
| 533 | |
| 534 | # Dynamically get the version of the supplied kernel source as a tuple, |
| 535 | # which can be used to check if a provided kernel source is at least a |
no outgoing calls
no test coverage detected