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"
Comment on lines +91 to +92

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

This function can be simplified by inlining the variable. Also, printf is safer and more portable than echo for printing arbitrary data, as echo's behavior with backslashes or leading hyphens is not consistent across shells. This is flagged by ShellCheck as SC2028, which is likely the intended violation for this demo.

Suggested change
local name="Sprint 7"
echo "$name"
printf "Sprint 7\n"

}

test_shutdown
demo_shellcheck_break
Loading