Пример #1
0
        checked = False
        for expected in expected_list:
            if actual.name == expected.name and actual.total == expected.total and actual.maxiops == expected.maxiops and actual.maxbw == expected.maxbw:
                checked = True
                break
        if checked == False:
            return "fail"
    return "pass"


def set_result(detail):
    out = cli.list_volume("")
    result = check_result(out)
    code = json_parser.get_response_code(out)
    with open(__file__ + ".result", "w") as result_file:
        result_file.write(result + " (" + str(code) + ")" + "\n" + out)


def execute():
    clear_result()
    MOUNT_ARRAY_BASIC_1.execute()
    out = cli.create_volume(VOL_NAME, str(VOL_SIZE), str(VOL_IOPS),
                            str(VOL_BW), "")
    return out


if __name__ == "__main__":
    out = execute()
    set_result(out)
    ibofos.kill_ibofos()
Пример #2
0
def kill_ibofos():
    write_log("killing ibofos...")
    ibofos.kill_ibofos()
    write_log("ibofos has been killed")
Пример #3
0
def kill_ibofos():
    write_log ("killing ibofos...")
    fio_util.dispose()
    ibofos.kill_ibofos()
    write_log ("ibofos has been killed")