aboutsummaryrefslogtreecommitdiff
path: root/infra/libkookie/nixpkgs/nixos/lib/test-driver/test-driver.py
diff options
context:
space:
mode:
Diffstat (limited to 'infra/libkookie/nixpkgs/nixos/lib/test-driver/test-driver.py')
-rw-r--r--infra/libkookie/nixpkgs/nixos/lib/test-driver/test-driver.py8
1 files changed, 2 insertions, 6 deletions
diff --git a/infra/libkookie/nixpkgs/nixos/lib/test-driver/test-driver.py b/infra/libkookie/nixpkgs/nixos/lib/test-driver/test-driver.py
index 156392ad1e32..96b75a49928f 100644
--- a/infra/libkookie/nixpkgs/nixos/lib/test-driver/test-driver.py
+++ b/infra/libkookie/nixpkgs/nixos/lib/test-driver/test-driver.py
@@ -110,7 +110,6 @@ def create_vlan(vlan_nr: str) -> Tuple[str, str, "subprocess.Popen[bytes]", Any]
pty_master, pty_slave = pty.openpty()
vde_process = subprocess.Popen(
["vde_switch", "-s", vde_socket, "--dirmode", "0700"],
- bufsize=1,
stdin=pty_slave,
stdout=subprocess.PIPE,
stderr=subprocess.PIPE,
@@ -635,8 +634,7 @@ class Machine:
shutil.copy(intermediate, abs_target)
def dump_tty_contents(self, tty: str) -> None:
- """Debugging: Dump the contents of the TTY<n>
- """
+ """Debugging: Dump the contents of the TTY<n>"""
self.execute("fold -w 80 /dev/vcs{} | systemd-cat".format(tty))
def get_screen_text(self) -> str:
@@ -748,7 +746,6 @@ class Machine:
self.process = subprocess.Popen(
self.script,
- bufsize=1,
stdin=subprocess.DEVNULL,
stdout=subprocess.PIPE,
stderr=subprocess.STDOUT,
@@ -862,8 +859,7 @@ class Machine:
self.send_monitor_command("set_link virtio-net-pci.1 off")
def unblock(self) -> None:
- """Make the machine reachable.
- """
+ """Make the machine reachable."""
self.send_monitor_command("set_link virtio-net-pci.1 on")