Skip to content
This repository was archived by the owner on Sep 7, 2020. It is now read-only.

Commit f383add

Browse files
committed
boardfarm-ci: Fixes for PEP-8 compliance
1 parent 0e1458d commit f383add

3 files changed

Lines changed: 4 additions & 5 deletions

File tree

dctest.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@
1616
#
1717
from __future__ import print_function # To check for python2 or < 3.5 execution
1818
import argparse
19-
import fcntl
2019
import os
2120
import grp
2221
import shutil

tests/boardfarm_plugins/boardfarm_prplmesh/devices/prplmesh_compose.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,8 @@ def __init__(self, *args, **kwargs):
5353
self._docker_compose(["-d", "--name", self.docker_name, "agent"],
5454
"run", "start-agent")
5555
time.sleep(self.delay)
56-
self.agent_entity = ALEntityDocker(self.name, device=self, is_controller=False, compose=True)
56+
self.agent_entity = ALEntityDocker(self.name, device=self,
57+
is_controller=False, compose=True)
5758

5859
self.wired_sniffer = Sniffer(_get_bridge_interface(self.docker_network),
5960
boardfarm.config.output_dir)
@@ -101,7 +102,6 @@ def check_status(self):
101102
self._run_shell_cmd("printf",
102103
["device_get_info", "|", "nc", "-w", "1", "controller-rme", "8002"])
103104

104-
105105
def isalive(self):
106106
"""Method required by boardfarm.
107107
@@ -113,4 +113,3 @@ def isalive(self):
113113
def prprlmesh_status_check(self):
114114
self.check_status()
115115
return True
116-

tests/environment.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -323,7 +323,8 @@ def __init__(self, agent: ALEntityDocker, iface_name: str):
323323
def wait_for_log(self, regex: str, start_line: int, timeout: float) -> bool:
324324
'''Poll the radio's logfile until it contains "regex" or times out.'''
325325
programs = ("agent_" + self.iface_name, "ap_manager_" + self.iface_name)
326-
return _docker_wait_for_log(self.agent.device.docker_name, programs, regex, start_line, timeout)
326+
return _docker_wait_for_log(self.agent.device.docker_name, programs, regex,
327+
start_line, timeout)
327328

328329
def send_bwl_event(self, event: str) -> None:
329330
# The file is only available within the docker container so we need to use an echo command.

0 commit comments

Comments
 (0)