nixosTests.nixos-test-driver: init#157161
Conversation
nixos/lib/test-driver/run_mutmut.sh
Outdated
There was a problem hiding this comment.
we could wrap this script using wrapProgram, adding all the runtime-dependencies to the PATH, moreover passing the to be mutated path using an argument, and use wrapPrograms -set to set it to the path.
There was a problem hiding this comment.
I suspect this is for future work
There was a problem hiding this comment.
Yeah, currently waiting for console text that never shows up breaks the cooperative multitasking model we use for polling_condition. Not for this PR tho.
nixos/tests/nixos-test-driver/tty.py
Outdated
There was a problem hiding this comment.
Why is this commented out?
There was a problem hiding this comment.
Because wait_for_console_text did something else than I initially thought, and I haven't found a good way to test it yet.
827216c to
c57dfed
Compare
c57dfed to
3be1f44
Compare
roberth
left a comment
There was a problem hiding this comment.
This is awesome.
I've refactored the nixos test expressions to be module based, requiring a small rebase of the (small) testing-python.nix part. I hope my suggestion is useful.
3be1f44 to
9a60710
Compare
9a60710 to
aee8500
Compare
There was a problem hiding this comment.
This is actually incorrect… In auto-uid-allocation, nixbld does not appear in the username.
There was a problem hiding this comment.
Not sure I understand the intent here.
2eef95f to
c40d354
Compare
c40d354 to
cc14a62
Compare
|
@ofborg test nixos-test-driver.driver |
cc14a62 to
92beab7
Compare
Now, whenever we will modify the nixos-test-driver itself, ofborg will run its self-test suite.
As it was complaining in some place, I had to `ruff`-ify + `black`-ify.
92beab7 to
4e8bd51
Compare
|
@ofborg test nixos-test-driver.driver |
| black --check --diff . | ||
| ''; | ||
|
|
||
| passthru.tests = nixosTests.nixos-test-driver.driver; |
There was a problem hiding this comment.
I was thinking:
| passthru.tests = nixosTests.nixos-test-driver.driver; | |
| passthru.tests = nixosTests.nixos-test-driver; |
(Resuming thread #157161 (comment))
Motivation for this change
Added minimal changes to make it properly testable, mostly adding a
timeoutoption to functions.cc @marijanp @tfc
Minimal version of #154168
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