Skip to content

Commit

Permalink
signing.sh: Revert test improvement because it fails on GHA + macOS
Browse files Browse the repository at this point in the history
  • Loading branch information
roberth committed Jul 7, 2023
1 parent b4b02d0 commit 9fc82de
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion tests/signing.sh
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,11 @@ info=$(nix path-info --store file://$cacheDir --json $outPath2)
# Copying to a diverted store should fail due to a lack of signatures by trusted keys.
chmod -R u+w $TEST_ROOT/store0 || true
rm -rf $TEST_ROOT/store0
expectStderr 1 nix copy --to $TEST_ROOT/store0 $outPath | grepQuiet -E 'cannot add path .* because it lacks a signature by a trusted key'

# Fails or very flaky only on GHA + macOS:
# expectStderr 1 nix copy --to $TEST_ROOT/store0 $outPath | grepQuiet -E 'cannot add path .* because it lacks a signature by a trusted key'
# but this works:
(! nix copy --to $TEST_ROOT/store0 $outPath)

# But succeed if we supply the public keys.
nix copy --to $TEST_ROOT/store0 $outPath --trusted-public-keys $pk1
Expand Down

0 comments on commit 9fc82de

Please sign in to comment.