コード例 #1
0
def test_top():
    ssh_con = SSHconnection(hostname, username, password, port)
    out, err = ssh_con.execute_command_buffer("top")
    print("output from Raspberry Pi: " + out)
    # assert out == ""
    #assert out != ""
    ssh_con.close()
コード例 #2
0
def test_dmesg(logger):
    ssh_con = SSHconnection(hostname, username, password, port)
    out, err = ssh_con.execute_command_buffer("dmesg")
    print("output from Raspberry Pi: " + out)
    logger.info("output from Raspberry Pi: " + out)
    # assert out == ""
    #assert out != ""
    ssh_con.close()