1
0
Fork 0
mirror of https://github.com/NixOS/nix synced 2025-06-25 06:31:14 +02:00

Shellcheck some test scripts

Progress on #10795
This commit is contained in:
John Ericson 2024-05-28 10:10:02 -04:00
parent 1e2b26734b
commit 2e12b58126
20 changed files with 106 additions and 71 deletions

View file

@ -3,8 +3,7 @@
# Remove overall test dir (at most one of the two should match) and
# remove file extension.
# shellcheck disable=SC2154
test_name=$(echo -n "$test" | sed \
test_name=$(echo -n "${test?must be defined by caller (test runner)}" | sed \
-e "s|^tests/unit/[^/]*/data/||" \
-e "s|^tests/functional/||" \
-e "s|\.sh$||" \