Example #1
0
def show_verbose():
    ttypager.ttypager(text="""Current test verbosity level: {}

Test verbosity levels
    0 = Summary of PASS / FAIL counts only
    1 = Test string output for FAIL only
    2 = Detailed output for FAIL only (default)
    3 = Detailed output for PASS / FAIL
""".format(verbose))
Example #2
0
def show_verbose():
    ttypager.ttypager(text=
"""Current test verbosity level: {}

Test verbosity levels
    0 = Summary of PASS / FAIL counts only
    1 = Test string output for FAIL only
    2 = Detailed output for FAIL only (default)
    3 = Detailed output for PASS / FAIL
""".format(verbose))
Example #3
0
def display():
    """Print processor topology to the screen via pager."""
    try:
        socket_dict = topology()
    except RuntimeError as e:
        ttypager(str(e))
        return
    s = ""
    for socket, core_dict in socket_dict.iteritems():
        s += 'socket ' + _display_apicid(socket) + '\n'
        for core, threads in core_dict.iteritems():
            s += '| core ' + _display_apicid(core) + '\n'
            for thread in threads:
                s += '| | thread ' + _display_apicid(thread) + '\n'
        s += '\n'
    ttypager(s)
Example #4
0
def show_supported_mwaits():
    ttypager.ttypager(supported_mwaits_msg)
Example #5
0
def show_supported_mwaits():
    ttypager.ttypager(supported_mwaits_msg)