def uninstall_opencas():
    TestRun.LOGGER.info('Uninstalling Open CAS')
    output = TestRun.executor.run('casadm -V')
    if (output.exit_code != 0):
        raise CmdException('Open CAS is not properly installed', output)
    else:
        TestRun.executor.run(f'cd {TestRun.usr.working_dir} && make uninstall')
        if (output.exit_code != 0):
            raise CmdException('There was an error during uninstall process', output)
def uninstall_opencas():
    TestRun.LOGGER.info('Uninstalling Open CAS')
    output = TestRun.executor.run('casadm -V')
    if (output.exit_code != 0):
        raise CmdException('Open CAS is not properly installed', output)
    else:
        TestRun.executor.run(f'cd {TestRun.usr.working_dir} && make uninstall')
        if (output.exit_code != 0):
            raise CmdException('There was an error during uninstall process', output)