nixosTests.containers*: port rest to python#74761
Conversation
There was a problem hiding this comment.
in failure cases, the subtest title should ideally tell you what the high-level expectations are. While the container will have some kind of status, it is most helpful when the title says "Status of webserver container is UP".
There was a problem hiding this comment.
there's a lot to comment out in debug cases. Is it likely that all these prints will help in case this test fails in the future? if so, why not add some constant DEBUG_OUTPUT in the beginning of the test and then put these commands into some conditional - then the debugging user can simply set one variable to True and get it all with less work.
There was a problem hiding this comment.
| with subtest("simple physical interface"): | |
| with subtest("Simple physical interface is up"): |
There was a problem hiding this comment.
"...is up" or "...can be pinged" or something.
tfc
left a comment
There was a problem hiding this comment.
Please change the subtest titles in a way that they tell the user more about the high level expectations
2ede8fd to
e32692f
Compare
|
@tfc fixed, please take a look |
|
@tfc not sure I follow. Like changing this into ? |
|
@mmilata more like: machine.succeed(
"ping -n -c 1 192.168.0.100",
"ping -n -c 1 fc00::2"
) |
e32692f to
931a305
Compare
|
@tfc oh, I had no idea |
There was a problem hiding this comment.
This (and the conditionals further down) should probably go away.
There was a problem hiding this comment.
I'd better call it output, out is too similar to $out ;-)
There was a problem hiding this comment.
I've changed this to assert "substr" in machine.succeed("cmd") which seems to be widely used.
|
@mmilata could you adress the requested changes? Would be nice to merge this in :-) |
931a305 to
6fbb76c
Compare
|
@flokli sure, PTAL |
| import ./make-test.nix ({ pkgs, ...} : { | ||
| name = "containers-bridge"; | ||
| import ./make-test-python.nix ({ pkgs, ...} : { | ||
| name = "containers-extra_veth"; |
Motivation for this change
#72828
Things done
sandboxinnix.confon non-NixOS linux)Notify maintainers
cc @kampfschlaefer @tfc @flokli @worldofpeace