about summary refs log tree commit diff
path: root/nixos/tests/overlayfs.nix
AgeCommit message (Collapse)AuthorFilesLines
2022-03-28treewide: machine -> nodes.machineRobert Hensing1-1/+1
2021-06-16nixos/tests/overlayfs: Use individual commandsaszlig1-30/+27
This reverts the test to be similar to its original Perl version, where the test steps were performed as individual commands instead of what we have now, where commands are sent to the machine as one giant string. While this change doesn't seem like it would make a big difference, it makes a huge difference if the test fails because you then get an error about which command has failed exactly instead of just knowing that "something in there" has failed. I also switched 2 spaces indentation, because it is more in line with Nix coding conventions. Signed-off-by: aszlig <aszlig@nix.build>
2021-06-16nixos/tests/overlayfs: Fix erroneous backslashesaszlig1-7/+7
Since commit b7749c76715ba96727f7a12bc2514ddfa6847813, commands run as part of VM tests are exiting immediately if an error happens. When converting the overlayfs test to Python in commit 5ae92144ba04caefaf56b4204abe85b71dbb527b, the individual test commands were crammed into one big string instead of using a series of test commands like done in the Perl version. Additionally, the backslash-escaped dollar signs were necessary in Perl's double-quoted strings to avoid variable interpolation, for Python however, this results in an actual backslash being inserted into the command. While this obviously results in an exit code of 1 (without an error message, since it's using bash's expression evaluation command), the test didn't fail because putting all these commands in one string will result in only the last error code being relevant. With the change to "set -e" for commands sent to test machines, this has changed and with the exit code of all commands now relevant, the test now fails because the errors from individual command substitutions that were prevented by escaping the dollar sign are now actually visible. This in turn also means that until now, we wouldn't have noticed if the overlayfs test would have failed for real. Signed-off-by: aszlig <aszlig@nix.build>
2021-01-10treewide: simplify pkgs.stdenv.lib -> pkgs.libDominik Xaver Hörl1-1/+1
The library does not depend on stdenv, that `stdenv` exposes `lib` is an artifact of the ancient origins of nixpkgs.
2019-12-15nixosTests.overlayfs: Port tests to pythonChristian Kampka1-42/+35
2019-03-15nixos/overlayfs: add testPascal Bach1-0/+57