Skip to content

Commit

Permalink
fix functional tests for nix flake check --all-systems
Browse files Browse the repository at this point in the history
Flake with two systems intentionally fails with `nix flake check --all-systems`;
the same flake succeeds with `nix flake check`.

Previously, this flake intentionally failed with `nix flake check`.
  • Loading branch information
peterbecich committed Feb 11, 2023
1 parent df53941 commit b2e5a8a
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion tests/flakes/check.sh
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,8 @@ cat > $flakeDir/flake.nix <<EOF
}
EOF

checkRes=$(nix flake check --keep-going $flakeDir 2>&1 && fail "nix flake check should have failed" || true)
nix flake check $flakeDir

checkRes=$(nix flake check --all-systems --keep-going $flakeDir 2>&1 && fail "nix flake check --all-systems should have failed" || true)
echo "$checkRes" | grep -q "packages.system-1.default"
echo "$checkRes" | grep -q "packages.system-2.default"

0 comments on commit b2e5a8a

Please sign in to comment.