NixOS VM tests: Difference between revisions
imported>Teto m cleanup |
imported>Teto adding clever's trick to fix some failing tests |
||
Line 17: | Line 17: | ||
You can run the tests interactively as described in nixos manual. | You can run the tests interactively as described in nixos manual. | ||
When you run `nix-build ./nixos/tests/login.nix`, the resulting output gives you a summary of the results, but to gain access to the VM, you can run `nix repl ./nixos/tests/login.nix` and see the ran VM via `driver.outPath`. | When you run `nix-build ./nixos/tests/login.nix`, the resulting output gives you a summary of the results, but to gain access to the VM, you can run `nix repl ./nixos/tests/login.nix` and see the ran VM via `driver.outPath`. | ||
== I don't see any prompt ? (qemu window pitch black) == | |||
Check the output for `malformed JSON string, neither array, object, number, string or atom, at character offset 0 (before "\x{0}\x{0}\x{0}\x{0}...") at /nix/store/1hkp2n6hz3ybf2rvkjkwrzgbjkrrakzl-update-users-groups.pl line 11`. | |||
You should purge the state present in rm -rf /tmp/vm-state-<VM_NAME> |