mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-18 03:30:45 +00:00
f2929eb949
Several machine operations, like `send_chars` and `send_key`, are implemented by calling `send_monitor_command`, possibly multiple times. This generates a huge amount of unnecessary noise in the log, because `send_monitor_command` is a low-level operation and an implementation detail. Here's an excerpt from a highlighted log before and afte the change. Before: [1m[32msubtest: Can generate a PGP key[0m[0m machine: [1m[32msending keys 'gpg --gen-key\n'[0m[0m machine: [1m[32msending monitor command: sendkey g[0m[0m machine: [1m[32mwaiting for monitor prompt[0m[0m (finished: waiting for monitor prompt, in 0.00 seconds) (finished: sending monitor command: sendkey g, in 0.00 seconds) machine: [1m[32msending monitor command: sendkey p[0m[0m machine: [1m[32mwaiting for monitor prompt[0m[0m (finished: waiting for monitor prompt, in 0.00 seconds) (finished: sending monitor command: sendkey p, in 0.00 seconds) machine: [1m[32msending monitor command: sendkey g[0m[0m machine: [1m[32mwaiting for monitor prompt[0m[0m (finished: waiting for monitor prompt, in 0.00 seconds) (finished: sending monitor command: sendkey g, in 0.00 seconds) machine: [1m[32msending monitor command: sendkey spc[0m[0m machine: [1m[32mwaiting for monitor prompt[0m[0m (finished: waiting for monitor prompt, in 0.00 seconds) (finished: sending monitor command: sendkey spc, in 0.00 seconds) machine: [1m[32msending monitor command: sendkey 0x0C[0m[0m machine: [1m[32mwaiting for monitor prompt[0m[0m (finished: waiting for monitor prompt, in 0.00 seconds) (finished: sending monitor command: sendkey 0x0C, in 0.00 seconds) machine: [1m[32msending monitor command: sendkey 0x0C[0m[0m machine: [1m[32mwaiting for monitor prompt[0m[0m (finished: waiting for monitor prompt, in 0.00 seconds) (finished: sending monitor command: sendkey 0x0C, in 0.00 seconds) machine: [1m[32msending monitor command: sendkey g[0m[0m machine: [1m[32mwaiting for monitor prompt[0m[0m (finished: waiting for monitor prompt, in 0.00 seconds) (finished: sending monitor command: sendkey g, in 0.00 seconds) machine: [1m[32msending monitor command: sendkey e[0m[0m machine: [1m[32mwaiting for monitor prompt[0m[0m (finished: waiting for monitor prompt, in 0.00 seconds) (finished: sending monitor command: sendkey e, in 0.00 seconds) machine: [1m[32msending monitor command: sendkey n[0m[0m machine: [1m[32mwaiting for monitor prompt[0m[0m (finished: waiting for monitor prompt, in 0.00 seconds) (finished: sending monitor command: sendkey n, in 0.00 seconds) machine: [1m[32msending monitor command: sendkey 0x0C[0m[0m machine: [1m[32mwaiting for monitor prompt[0m[0m (finished: waiting for monitor prompt, in 0.00 seconds) (finished: sending monitor command: sendkey 0x0C, in 0.00 seconds) machine: [1m[32msending monitor command: sendkey k[0m[0m machine: [1m[32mwaiting for monitor prompt[0m[0m (finished: waiting for monitor prompt, in 0.00 seconds) (finished: sending monitor command: sendkey k, in 0.00 seconds) machine: [1m[32msending monitor command: sendkey e[0m[0m machine: [1m[32mwaiting for monitor prompt[0m[0m (finished: waiting for monitor prompt, in 0.00 seconds) (finished: sending monitor command: sendkey e, in 0.00 seconds) machine: [1m[32msending monitor command: sendkey y[0m[0m machine: [1m[32mwaiting for monitor prompt[0m[0m (finished: waiting for monitor prompt, in 0.00 seconds) (finished: sending monitor command: sendkey y, in 0.00 seconds) machine: [1m[32msending monitor command: sendkey ret[0m[0m machine: [1m[32mwaiting for monitor prompt[0m[0m (finished: waiting for monitor prompt, in 0.00 seconds) (finished: sending monitor command: sendkey ret, in 0.00 seconds) (finished: sending keys 'gpg --gen-key\n', in 0.15 seconds) After: [1m[32msubtest: Can generate a PGP key[0m[0m machine: [1m[32msending keys 'gpg --gen-key\n'[0m[0m (finished: sending keys 'gpg --gen-key\n', in 0.15 seconds) |
||
---|---|---|
.. | ||
make-options-doc | ||
test-driver | ||
testing | ||
default.nix | ||
eval-cacheable-options.nix | ||
eval-config-minimal.nix | ||
eval-config.nix | ||
from-env.nix | ||
make-channel.nix | ||
make-disk-image.nix | ||
make-ext4-fs.nix | ||
make-iso9660-image.nix | ||
make-iso9660-image.sh | ||
make-multi-disk-zfs-image.nix | ||
make-single-disk-zfs-image.nix | ||
make-squashfs.nix | ||
make-system-tarball.nix | ||
make-system-tarball.sh | ||
qemu-common.nix | ||
systemd-lib.nix | ||
systemd-types.nix | ||
systemd-unit-options.nix | ||
test-script-prepend.py | ||
testing-python.nix | ||
utils.nix |