def install_opencas():
    TestRun.LOGGER.info('Installing Open CAS')
    output = TestRun.executor.run(f'cd {TestRun.usr.working_dir} && make install')
    if (output.exit_code != 0):
        raise CmdException('Error while installing Open CAS', output)
    TestRun.LOGGER.info('Check if casadm is properly installed.')
    output = TestRun.executor.run('casadm -V')
    if (output.exit_code != 0):
        raise CmdException("'casadm -V' command returned an error", output)
    else:
        TestRun.LOGGER.info(output.stdout)
def install_opencas():
    TestRun.LOGGER.info('Installing Open CAS')
    output = TestRun.executor.run(f'cd {TestRun.usr.working_dir} && make install')
    if (output.exit_code != 0):
        raise CmdException('Error while installing Open CAS', output)
    TestRun.LOGGER.info('Check if casadm is properly installed.')
    output = TestRun.executor.run('casadm -V')
    if (output.exit_code != 0):
        raise CmdException("'casadm -V' command returned an error", output)
    else:
        TestRun.LOGGER.info(output.stdout)