mirror of
https://github.com/privatevoid-net/nix-super.git
synced 2024-11-23 22:46:16 +02:00
housekeeping: shellcheck for tests/functional/build-dry.sh
This commit is contained in:
parent
f615489e0e
commit
c127625095
1 changed files with 7 additions and 7 deletions
|
@ -35,17 +35,17 @@ clearStore
|
|||
clearCache
|
||||
|
||||
RESULT=$TEST_ROOT/result-link
|
||||
rm -f $RESULT
|
||||
rm -f "$RESULT"
|
||||
|
||||
nix-build dependencies.nix -o $RESULT --dry-run
|
||||
nix-build dependencies.nix -o "$RESULT" --dry-run
|
||||
|
||||
[[ ! -h $RESULT ]] || fail "nix-build --dry-run created output link"
|
||||
|
||||
nix build -f dependencies.nix -o $RESULT --dry-run
|
||||
nix build -f dependencies.nix -o "$RESULT" --dry-run
|
||||
|
||||
[[ ! -h $RESULT ]] || fail "nix build --dry-run created output link"
|
||||
|
||||
nix build -f dependencies.nix -o $RESULT
|
||||
nix build -f dependencies.nix -o "$RESULT"
|
||||
|
||||
[[ -h $RESULT ]]
|
||||
|
||||
|
@ -58,12 +58,12 @@ RES=$(nix build -f dependencies.nix --dry-run --json)
|
|||
|
||||
if [[ -z "${NIX_TESTS_CA_BY_DEFAULT-}" ]]; then
|
||||
echo "$RES" | jq '.[0] | [
|
||||
(.drvPath | test("'$NIX_STORE_DIR'.*\\.drv")),
|
||||
(.outputs.out | test("'$NIX_STORE_DIR'"))
|
||||
(.drvPath | test("'"$NIX_STORE_DIR"'.*\\.drv")),
|
||||
(.outputs.out | test("'"$NIX_STORE_DIR"'"))
|
||||
] | all'
|
||||
else
|
||||
echo "$RES" | jq '.[0] | [
|
||||
(.drvPath | test("'$NIX_STORE_DIR'.*\\.drv")),
|
||||
(.drvPath | test("'"$NIX_STORE_DIR"'.*\\.drv")),
|
||||
.outputs.out == null
|
||||
] | all'
|
||||
fi
|
||||
|
|
Loading…
Reference in a new issue