Skip to content
Snippets Groups Projects
Commit 1399d6f8 authored by Simon McVittie's avatar Simon McVittie
Browse files

logger: Silence some shellcheck warnings in the tests

parent 4a706770
No related branches found
No related tags found
1 merge request!758Fix lint warnings
...@@ -11,12 +11,16 @@ me="${me##*/}" ...@@ -11,12 +11,16 @@ me="${me##*/}"
[ -n "${G_TEST_SRCDIR-}" ] || G_TEST_SRCDIR="$here" [ -n "${G_TEST_SRCDIR-}" ] || G_TEST_SRCDIR="$here"
[ -n "${G_TEST_BUILDDIR-}" ] || G_TEST_BUILDDIR="$here" [ -n "${G_TEST_BUILDDIR-}" ] || G_TEST_BUILDDIR="$here"
# This is input into logger-0.bash, even if unexported.
# shellcheck disable=SC2034
SRT_LOGGER="${G_TEST_BUILDDIR}/../bin/srt-logger" SRT_LOGGER="${G_TEST_BUILDDIR}/../bin/srt-logger"
debug () { debug () {
echo "logger-0: $*" >&2 || : echo "logger-0: $*" >&2 || :
} }
# We shellcheck this separately
# shellcheck source=/dev/null
if source "${G_TEST_SRCDIR}/../bin/logger-0.bash" "$@"; then if source "${G_TEST_SRCDIR}/../bin/logger-0.bash" "$@"; then
debug "sourced logger-0.bash successfully" debug "sourced logger-0.bash successfully"
else else
......
...@@ -18,6 +18,8 @@ debug () { ...@@ -18,6 +18,8 @@ debug () {
redirect_log () { redirect_log () {
local SRT_LOGGER_PID local SRT_LOGGER_PID
# This isn't used here, but it gets set by srt-logger --sh-syntax
# shellcheck disable=SC2034
local SRT_LOGGER_READY local SRT_LOGGER_READY
local fifo local fifo
local from_stdout local from_stdout
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment