mirror of
https://github.com/privatevoid-net/nix-super.git
synced 2024-11-10 00:08:07 +02:00
housekeeping: shellcheck for tests/functional/flakes/absolute-attr-paths.sh
This commit is contained in:
parent
ae6a842c55
commit
d81fd4a1c3
1 changed files with 5 additions and 5 deletions
|
@ -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 a new issue