https://nixos.org/nixos/manual/index.html#sec-running-nixos-tests-interactively
states that to run a nixos test you simply call nix-build
on it.
This will work only until the first success - then the previous output path will simply be returned without performing any of the tests.
There is a --check
flag but that one breaks the return code of the test, since instead of reporting the success status of the test you end up with a non-zero status since the test output was not exactly the same as the previous run.
Does anyone happen to have some trick they use in such situations?