mirror of
https://github.com/NixOS/nix.git
synced 2025-11-08 11:36:03 +01:00
Revert "Merge pull request #14022 from obsidiansystems/derivation-resolution-goal"
This reverts commitd02dca099f, reversing changes made to9bd09155ac.
This commit is contained in:
parent
7e39ab4dc7
commit
ce749454dc
12 changed files with 237 additions and 462 deletions
|
|
@ -178,8 +178,7 @@ test "$(<<<"$out" grep -cE '^error:')" = 4
|
|||
|
||||
out="$(nix build -f fod-failing.nix -L x4 2>&1)" && status=0 || status=$?
|
||||
test "$status" = 1
|
||||
# Precise number of errors depends on daemon version / goal refactorings
|
||||
(( "$(<<<"$out" grep -cE '^error:')" >= 2 ))
|
||||
test "$(<<<"$out" grep -cE '^error:')" = 2
|
||||
|
||||
if isDaemonNewer "2.29pre"; then
|
||||
<<<"$out" grepQuiet -E "error: Cannot build '.*-x4\\.drv'"
|
||||
|
|
@ -187,13 +186,11 @@ if isDaemonNewer "2.29pre"; then
|
|||
else
|
||||
<<<"$out" grepQuiet -E "error: 1 dependencies of derivation '.*-x4\\.drv' failed to build"
|
||||
fi
|
||||
# Either x2 or x3 could have failed, x4 depends on both symmetrically
|
||||
<<<"$out" grepQuiet -E "hash mismatch in fixed-output derivation '.*-x[23]\\.drv'"
|
||||
<<<"$out" grepQuiet -E "hash mismatch in fixed-output derivation '.*-x2\\.drv'"
|
||||
|
||||
out="$(nix build -f fod-failing.nix -L x4 --keep-going 2>&1)" && status=0 || status=$?
|
||||
test "$status" = 1
|
||||
# Precise number of errors depends on daemon version / goal refactorings
|
||||
(( "$(<<<"$out" grep -cE '^error:')" >= 3 ))
|
||||
test "$(<<<"$out" grep -cE '^error:')" = 3
|
||||
if isDaemonNewer "2.29pre"; then
|
||||
<<<"$out" grepQuiet -E "error: Cannot build '.*-x4\\.drv'"
|
||||
<<<"$out" grepQuiet -E "Reason: 2 dependencies failed."
|
||||
|
|
|
|||
|
|
@ -65,4 +65,7 @@ buildViaSubstitute use-a-prime-more-outputs^first
|
|||
# Should only fetch the output we asked for
|
||||
[[ -d "$(jq -r <"$TEST_ROOT"/a.json '.[0].outputs.out')" ]]
|
||||
[[ -f "$(jq -r <"$TEST_ROOT"/a.json '.[2].outputs.first')" ]]
|
||||
[[ ! -e "$(jq -r <"$TEST_ROOT"/a.json '.[2].outputs.second')" ]]
|
||||
|
||||
# Output should *not* be here, this is the bug
|
||||
[[ -e "$(jq -r <"$TEST_ROOT"/a.json '.[2].outputs.second')" ]]
|
||||
skipTest "bug is not yet fixed"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue