Port gnome3 like tests to python and udisks2#72860
Port gnome3 like tests to python and udisks2#72860worldofpeace merged 5 commits intoNixOS:masterfrom
Conversation
jtojnar
left a comment
There was a problem hiding this comment.
It would be nice to have a function for gnome-desktop-testing-runner too.
nixos/tests/packagekit.nix
Outdated
There was a problem hiding this comment.
Was the dbus API added or will it come later?
There was a problem hiding this comment.
Do you mean in the testing driver? I don't think so, but I have some great ideas of all the things that should be added there. Currently they've tried to go for a 1:1 port from the perl one.
I can make it similar to #34987 (comment) but maybe (description is |
88244d9 to
3be01be
Compare
|
@jtojnar I've added a Would you prefer having everything in one file like I've done, or perhaps the |
|
I think one file per test is still a good idea, some of them are slightly more complicated, recall also I am also not sure about the |
I just wanted the function name to express that it's just for projects that use I will change the structure though, |
3be01be to
2aaf62a
Compare
|
I am a bit confused by the moving of the tests. In the package set, I thought the plan was to get rid of the |
|
|
2aaf62a to
189ff39
Compare
|
From IRC:
|
nixos/tests/udisks2.nix
Outdated
There was a problem hiding this comment.
Why space this around, "${stick}" is much shorter than the line below.
There was a problem hiding this comment.
black fails on line length, as this becomes a nix store path so it demands I format it this way. We should probably make that more relaxed. Similarly I've had to format makeInstalledTest testscript injection specifically with concatenating multi-line strings so it doesn't error out on it not being pretty.
189ff39 to
e4bf4cd
Compare
There was a problem hiding this comment.
In the future, we should probably have a module for this. Depends on #54150
There was a problem hiding this comment.
Maybe we should make this an array in line with structuredAttrs proposal. I can imagine python test driver to accept list of args like Python’s subprocess module does.
e4bf4cd to
6c1bd19
Compare
6c1bd19 to
e237fd2
Compare
|
@GrahamcOfBorg test udisks2 fontconfig-default-fonts packagekit |
The test script is also ported to python.
optionalPackages are deprecated.
e237fd2 to
d7c8ad7
Compare
Motivation for this change
#72828
Things done
sandboxinnix.confon non-NixOS linux)nix-shell -p nix-review --run "nix-review wip"./result/bin/)nix path-info -Sbefore and after)Notify maintainers
cc @