nixos/test-driver: run callbacks during Machine.wait_for_console_text#155730
nixos/test-driver: run callbacks during Machine.wait_for_console_text#155730Synthetica9 wants to merge 6 commits intoNixOS:masterfrom
Conversation
20674b1 to
776a36a
Compare
There was a problem hiding this comment.
I think this is possibly a breaking change: any reason why you're making it non-blocking?
There was a problem hiding this comment.
Because otherwise it will wait forever and never run the scheduled callbacks. When it times out it throws Empty, which was already caught, so it basically just runs callbacks and then retries (we could probably also get rid of the sleep here)
There was a problem hiding this comment.
(I'm not sure how you imagine this to fail, but I personally don't see it)
There was a problem hiding this comment.
(just realized Machine.sleep also indirectly runs callbacks, so I guess just setting the timeout would be enough here)
776a36a to
992c3b0
Compare
There was a problem hiding this comment.
it looks like this isn't used anywhere, or ist it just too early in the morning for me?
There was a problem hiding this comment.
No it was too late at night last night I guess. I packaged all prerequisites for the I wrote for #155622 into one pr, should've mentioned that. I also wrote a similar local function in #154168, and it seems like it would be more generally useful so I thought it would be best to just provide it within the test driver
ee96965 to
738f4ef
Compare
Motivation for this change
Things done
sandbox = trueset innix.conf? (See Nix manual)nix-shell -p nixpkgs-review --run "nixpkgs-review rev HEAD". Note: all changes have to be committed, also see nixpkgs-review usage./result/bin/)nixos/doc/manual/md-to-db.shto update generated release notes