Files
test/keywords/linux/mount/mount_keywords.py
Rity Menon 6db91c330b Add platform_integ_apps update test case
Change-Id: Ie0358dd767d243726016a0265a38fd754a719a9a
Signed-off-by: Rity Menon <rity.menon@windriver.com>
2025-11-19 10:19:13 -08:00

26 lines
842 B
Python

from framework.logging.automation_logger import get_logger
from framework.ssh.ssh_connection import SSHConnection
class MountKeywords:
"""Keywords for Linux mount operations."""
def __init__(self, ssh_connection: SSHConnection):
"""
Initialize MountKeywords.
Args:
ssh_connection (SSHConnection): SSH connection to execute mount commands.
"""
self.ssh_connection = ssh_connection
def remount_read_write(self, mount_point: str) -> None:
"""
Remount a filesystem with read-write permissions.
Args:
mount_point (str): The mount point to remount (e.g., "/usr").
"""
get_logger().log_info(f"Remounting {mount_point} with read-write permissions")
self.ssh_connection.send_as_sudo(f"mount -o rw,remount {mount_point}")