New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
cmd/snap-confine/tests: fix shellcheck on recently added files #3258
Conversation
interfaces/builtin/background.go
Outdated
@@ -0,0 +1,83 @@ | |||
// -*- Mode: Go; indent-tabs-mode: t -*- |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This file looks like it doesn't belong into this PR.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Oh, how the hell :D
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
one nitpick (not a blocker though)
@@ -60,7 +60,7 @@ SHM="$(mktemp -d -p /run/shm)" | |||
trap 'rm -rf $TMP $SHM' EXIT | |||
|
|||
# name snap-confine as the test name for improved logging | |||
L="$TMP/`basename $0`" | |||
L="$TMP/$(basename "$0")" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
only do:
L=$TMP/$(basename "$0")
there shoudl be no need for the outer quotes that makes it more confusing to read...
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think shellcheck disagrees.
Shellcheck is not tested automatically becauseof packaging issues related to that. This has lead to an issue where we merged something that fails (harmless) shellcheck verification and is a problem for downstream packaging. Signed-off-by: Zygmunt Krynicki <zygmunt.krynicki@canonical.com>
LGTM |
Verified this fixes the build issues on Fedora. |
Shellcheck is not tested automatically becauseof packaging issues related to
that. This has lead to an issue where we merged something that fails (harmless)
shellcheck verification and is a problem for downstream packaging.
Signed-off-by: Zygmunt Krynicki zygmunt.krynicki@canonical.com