mirror of
https://github.com/NixOS/nix.git
synced 2024-11-25 08:12:29 +00:00
housekeeping: shellcheck for tests/functional/flakes/absolute-attr-paths.sh
This commit is contained in:
parent
ae6a842c55
commit
d81fd4a1c3
@ -4,8 +4,8 @@ source ./common.sh
|
||||
|
||||
flake1Dir=$TEST_ROOT/flake1
|
||||
|
||||
mkdir -p $flake1Dir
|
||||
cat > $flake1Dir/flake.nix <<EOF
|
||||
mkdir -p "$flake1Dir"
|
||||
cat > "$flake1Dir"/flake.nix <<EOF
|
||||
{
|
||||
outputs = { self }: {
|
||||
x = 1;
|
||||
@ -14,6 +14,6 @@ cat > $flake1Dir/flake.nix <<EOF
|
||||
}
|
||||
EOF
|
||||
|
||||
[ "$(nix eval --impure --json $flake1Dir#.x)" -eq 1 ]
|
||||
[ "$(nix eval --impure --json $flake1Dir#x)" -eq 2 ]
|
||||
[ "$(nix eval --impure --json $flake1Dir#.packages.$system.x)" -eq 2 ]
|
||||
[ "$(nix eval --impure --json "$flake1Dir"#.x)" -eq 1 ]
|
||||
[ "$(nix eval --impure --json "$flake1Dir#x")" -eq 2 ]
|
||||
[ "$(nix eval --impure --json "$flake1Dir"#.packages."$system".x)" -eq 2 ]
|
||||
|
Loading…
Reference in New Issue
Block a user