def check_if_installed():
    TestRun.LOGGER.info('Check if Open-CAS-Linux is installed')
    output = TestRun.executor.run('which casadm')
    modules_loaded = os_utils.is_kernel_module_loaded(cas_module.CasModule.cache.value)
    if ((output.exit_code == 0) and modules_loaded):
        TestRun.LOGGER.info('CAS is installed')
        return True
    TestRun.LOGGER.info('CAS not installed')
    return False
def check_if_installed():
    TestRun.LOGGER.info('Check if Open-CAS-Linux is installed')
    output = TestRun.executor.run('which casadm')
    modules_loaded = os_utils.is_kernel_module_loaded(cas_module.CasModule.cache.value)
    if ((output.exit_code == 0) and modules_loaded):
        TestRun.LOGGER.info('CAS is installed')
        return True
    TestRun.LOGGER.info('CAS not installed')
    return False