mirror of
https://github.com/NixOS/nix
synced 2025-06-24 22:11:15 +02:00
housekeeping: shellcheck for tests/functional/ca/build-cache.sh
Co-authored-by: Sandro <sandro.jaeckel@gmail.com>
This commit is contained in:
parent
c127625095
commit
80c44138cb
3 changed files with 17 additions and 14 deletions
|
@ -26,7 +26,8 @@ copyAttr () {
|
|||
# Note: to copy CA derivations, we need to copy the realisations, which
|
||||
# currently requires naming the installables, not just the derivation output
|
||||
# path.
|
||||
nix copy --to file://$cacheDir "${args[@]}"
|
||||
|
||||
nix copy --to "file://$cacheDir" "${args[@]}"
|
||||
}
|
||||
|
||||
testRemoteCacheFor () {
|
||||
|
@ -35,7 +36,7 @@ testRemoteCacheFor () {
|
|||
copyAttr "$derivationPath" 1
|
||||
clearStore
|
||||
# Check nothing gets built.
|
||||
buildAttr "$derivationPath" 1 --option substituters file://$cacheDir --no-require-sigs |& grepQuietInverse " will be built:"
|
||||
buildAttr "$derivationPath" 1 --option substituters "file://$cacheDir" --no-require-sigs |& grepQuietInverse " will be built:"
|
||||
}
|
||||
|
||||
testRemoteCache () {
|
||||
|
@ -48,4 +49,4 @@ testRemoteCache () {
|
|||
}
|
||||
|
||||
clearStore
|
||||
testRemoteCache
|
||||
testRemoteCache
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue