Skip to content

Instantly share code, notes, and snippets.

View mattsm's full-sized avatar

Matthew McClintock mattsm

View GitHub Profile
lan: [2.65389] calling devices.debian.get_interface_ipaddr ( (<devices.debian.DebianBox object at 0x7ffb391e7450>, 'eth0') {} )
lan: [2.65395] calling devices.base.send ( (<devices.debian.DebianBox object at 0x7ffb391e7450>, '\nifconfig eth0\n') {} )
lan: [2.70408] returned devices.base.send ( (<devices.debian.DebianBox object at 0x7ffb391e7450>, '\nifconfig eth0\n') {} ) = 15
lan: [2.70413] calling devices.base.expect ( (<devices.debian.DebianBox object at 0x7ffb391e7450>, ['addr:(\\d{1,3}.\\d{1,3}.\\d{1,3}.\\d{1,3}).*(Bcast|P-t-P):', 'inet (\\d{1,3}.\\d{1,3}.\\d{1,3}.\\d{1,3}).*(broadcast|P-t-P)', 'inet ((25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\\.(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\\.(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\\.(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)).*netmask ((25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\\.(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\\.(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\\.(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)).*destination (25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\\.(25[0-5]|2[0-4][0-9]
[27.199943]
[27.199943] +----------------------------------------------------------------------------+||||||||||||||||||||||+----------------------------------------------------------------------------+ Use the ^ and v keys to select which entry is highlighted.
[27.199943] Press enter to boot the selected OS, `e' to edit the commands
[27.199943] before booting or `c' for a command-line. ESC to return
[27.199943] previous menu.  *OpenWrt  OpenWrt (failsafe)  [
[27.583011]+----------------------------------------------------------------------------+||||||||||||||||||||||+----------------------------------------------------------------------------+ Use the ^ and v keys to select which entry is highlighted.
[27.583011] Press enter to boot the selected OS, `e' to edit the commands
[27.583011] before booting or `c' for a command-line. ESC to return
[27.583011] previous menu.  *OpenWrt  OpenWrt (failsafe)  [8
[27.583011]+----------------------------------------------------------------------------+||||||||||||||||||||||+----------------------------------------------------------------------------+ Use the ^ and v keys to select which entry is highlighted.
[27.583011] Press enter to boot the selected OS, `e' to edit the commands
[27.583011] before booting or `c' for a command-line. ESC to return
[27.583011] previous menu.  *OpenWrt  OpenWrt (failsafe)  [8
[27.886842]
[27.886842]
[27.886842] +----------------------------------------------------------------------------+||||||||||||||||||||||+----------------------------------------------------------------------------+ Use the ^ and v keys to select which entry is highlighted.
[27.886842] Press enter to boot the selected OS, `e' to edit the commands
[27.886842] before booting or `c' for a command-line. ESC to return
[27.886842] previous menu.  *OpenWrt  OpenWrt (failsafe) 
sudo apt install -y subversion g++ zlib1g-dev build-essential git python time
sudo apt install -y libncurses5-dev gawk gettext unzip file libssl-dev wget
sudo apt install -y libelf-dev
sudo apt install -y build-essential libncurses5-dev python unzip
git clone https://git.openwrt.org/openwrt/openwrt.git
cd openwrt/
make package/symlinks && make defconfig && make download
make dirclean
echo 1 > sudo tee /proc/sys/vm/drop_caches
# About your project
Your project name: boardfarm
Your project blurb: Automated testing with python
Links to places we can find out more about your project:
# About you and your staff
Your NickServ account (primary group contact): mattsm
Your relationship to the project: Lead developer
NickServ accounts of alternate group contacts: None at the moment
<!DOCTYPE html>
<html>
<head>
<style type="text/css">
body {font-family: Verdana;}
table.results {border-spacing: 0;
border-collapse: collapse;
font-size: 10pt;}
tr.even {background-color: #f1f1f1;}
table tr:hover {background-color: #dedeef;}
This file has been truncated, but you can view the full file.
console-1: [0.0013] calling base.expect ( (<mv1.MV1 object at 0x7ff6732fa850>, ['assword:', 'ser2net.*\r\n', 'OpenGear Serial Server', 'to access the port escape menu']) {} )
console-1: [0.00136] calling base.expect_helper ( (<mv1.MV1 object at 0x7ff6732fa850>, ['assword:', 'ser2net.*\r\n', 'OpenGear Serial Server', 'to access the port escape menu'], <bound method MV1.expect of <mv1.MV1 object at 0x7ff6732fa850>>) {} )
console-1: [2.18503] returned base.expect_helper ( (<mv1.MV1 object at 0x7ff6732fa850>, ['assword:', 'ser2net.*\r\n', 'OpenGear Serial Server', 'to access the port escape menu'], <bound method MV1.expect of <mv1.MV1 object at 0x7ff6732fa850>>) {} ) = 2
console-1: [2.18506] returned base.expect ( (<mv1.MV1 object at 0x7ff6732fa850>, ['assword:', 'ser2net.*\r\n', 'OpenGear Serial Server', 'to access the port escape menu']) {} ) = 2
console-1: [3.69426] returned openwrt_router.__init__ ( (<mv1.MV1 object at 0x7ff6732fa850>, u'mv1') {'tftp_username': 'root', 'connection_type': u'ser2net', 'power_pa
class WifiStub()
def enable_wifi(self):
raise Exception("Not implemented!")
def set_channel(self):
raise Exception("Not implemented!")
... more wifi control functions ...