Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 7 additions & 1 deletion Backend/test/smoke_test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -87,4 +87,10 @@ test_shutdown() {
assert_contains "$calls" "ip link show wlan0"
}

test_shutdown
demo_shellcheck_break() {
local name="Sprint 7"
echo "$name"

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

medium

The pull request description states that this change is intended to introduce a ShellCheck violation. However, this line is correct as the variable is double-quoted. To introduce the intended violation (SC2086), you should remove the quotes around $name.

Suggested change
echo "$name"
echo $name

}

test_shutdown
demo_shellcheck_break

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

medium

The output of demo_shellcheck_break is sent to standard output, which may clutter the test results. Since the output is not being used for any assertions, consider redirecting it to /dev/null to keep the test output clean.

Suggested change
demo_shellcheck_break
demo_shellcheck_break >/dev/null

Loading