Skip to content

Commit 4232cb0

Browse files
committed
Remaining functional/ca tests for shellcheck
1 parent 5846d9d commit 4232cb0

File tree

13 files changed

+13
-18
lines changed

13 files changed

+13
-18
lines changed

maintainers/flake-module.nix

Lines changed: 0 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -168,21 +168,6 @@
168168
''^tests/functional/user-envs\.builder\.sh$''
169169
''^tests/functional/user-envs\.sh$''
170170
''^tests/functional/why-depends\.sh$''
171-
172-
# Content-addressed test files that use recursive-*looking* sourcing
173-
# (cd .. && source <self>), causing shellcheck to loop
174-
# They're small wrapper scripts with not a lot going on
175-
''^tests/functional/ca/eval-store\.sh$''
176-
''^tests/functional/ca/gc\.sh$''
177-
''^tests/functional/ca/import-from-derivation\.sh$''
178-
''^tests/functional/ca/multiple-outputs\.sh$''
179-
''^tests/functional/ca/new-build-cmd\.sh$''
180-
''^tests/functional/ca/nix-shell\.sh$''
181-
''^tests/functional/ca/post-hook\.sh$''
182-
''^tests/functional/ca/recursive\.sh$''
183-
''^tests/functional/ca/repl\.sh$''
184-
''^tests/functional/ca/selfref-gc\.sh$''
185-
''^tests/functional/ca/why-depends\.sh$''
186171
];
187172
};
188173
};

tests/functional/ca/build-dry.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
# shellcheck shell=bash
12
source common.sh
23

34
export NIX_TESTS_CA_BY_DEFAULT=1

tests/functional/ca/eval-store.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,4 +7,5 @@ source common.sh
77
export NIX_TESTS_CA_BY_DEFAULT=1
88

99
cd ..
10+
# shellcheck source=/dev/null
1011
source eval-store.sh

tests/functional/ca/gc.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,4 +7,5 @@ source common.sh
77
export NIX_TESTS_CA_BY_DEFAULT=1
88

99
cd ..
10+
# shellcheck source=/dev/null
1011
source gc.sh

tests/functional/ca/import-from-derivation.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,6 @@
33
source common.sh
44

55
export NIX_TESTS_CA_BY_DEFAULT=1
6-
6+
# shellcheck source=/dev/null
77
cd .. && source import-from-derivation.sh
88

tests/functional/ca/multiple-outputs.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,4 +4,5 @@ source common.sh
44

55
export NIX_TESTS_CA_BY_DEFAULT=1
66
cd ..
7+
# shellcheck source=/dev/null
78
source ./multiple-outputs.sh

tests/functional/ca/new-build-cmd.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,4 +4,5 @@ source common.sh
44

55
export NIX_TESTS_CA_BY_DEFAULT=1
66
cd ..
7+
# shellcheck source=/dev/null
78
source ./build.sh

tests/functional/ca/nix-shell.sh

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22

33
source common.sh
44

5+
# shellcheck disable=SC2034
56
NIX_TESTS_CA_BY_DEFAULT=true
67
cd ..
8+
# shellcheck source=/dev/null
79
source ./nix-shell.sh

tests/functional/ca/post-hook.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ requireDaemonNewerThan "2.4pre20210626"
66

77
export NIX_TESTS_CA_BY_DEFAULT=1
88
cd ..
9+
# shellcheck source=/dev/null
910
source ./post-hook.sh
1011

1112

tests/functional/ca/recursive.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,4 +6,5 @@ requireDaemonNewerThan "2.4pre20210623"
66

77
export NIX_TESTS_CA_BY_DEFAULT=1
88
cd ..
9+
# shellcheck source=/dev/null
910
source ./recursive.sh

0 commit comments

Comments
 (0)