mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-01-18 02:44:30 +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) |
||
---|---|---|
.. | ||
test_driver | ||
default.nix | ||
setup.py |