shellcheck fix: tests/functional/read-only-store.sh
This commit is contained in:
@@ -106,7 +106,6 @@
|
||||
enable = true;
|
||||
excludes = [
|
||||
# We haven't linted these files yet
|
||||
''^tests/functional/read-only-store\.sh$''
|
||||
''^tests/functional/readfile-context\.sh$''
|
||||
''^tests/functional/recursive\.sh$''
|
||||
''^tests/functional/referrers\.sh$''
|
||||
|
||||
@@ -12,10 +12,10 @@ clearStore
|
||||
|
||||
happy () {
|
||||
# We can do a read-only query just fine with a read-only store
|
||||
nix --store local?read-only=true path-info $dummyPath
|
||||
nix --store local?read-only=true path-info "$dummyPath"
|
||||
|
||||
# `local://` also works.
|
||||
nix --store local://?read-only=true path-info $dummyPath
|
||||
nix --store local://?read-only=true path-info "$dummyPath"
|
||||
|
||||
# We can "write" an already-present store-path a read-only store, because no IO is actually required
|
||||
nix-store --store local?read-only=true --add dummy
|
||||
@@ -37,8 +37,8 @@ happy
|
||||
## Testing read-only mode with an underlying store that is actually read-only
|
||||
|
||||
# Ensure store is actually read-only
|
||||
chmod -R -w $TEST_ROOT/store
|
||||
chmod -R -w $TEST_ROOT/var
|
||||
chmod -R -w "$TEST_ROOT"/store
|
||||
chmod -R -w "$TEST_ROOT"/var
|
||||
|
||||
# Make sure we fail on add operations on the read-only store
|
||||
# This is only for adding files that are not *already* in the store
|
||||
|
||||
Reference in New Issue
Block a user