3
0
Fork 0
forked from mirrors/nixpkgs

nixos/switchTest: Also test the os-release parser

This commit is contained in:
Janne Heß 2022-03-13 19:09:06 +01:00
parent 73a4c4972b
commit 5c00fe6b1b
No known key found for this signature in database
GPG key ID: 69165158F05265DF

View file

@ -502,6 +502,10 @@ in {
machine.succeed(
"${stderrRunner} ${originalSystem}/bin/switch-to-configuration test"
)
# This tests whether the /etc/os-release parser works which is a fallback
# when /etc/NIXOS is missing. If the parser does not work, switch-to-configuration
# would fail.
machine.succeed("rm /etc/NIXOS")
machine.succeed(
"${stderrRunner} ${otherSystem}/bin/switch-to-configuration test"
)