Skip to content

debug: Enforce programmer selection #2394

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

Merged
merged 3 commits into from
Oct 31, 2023
Merged
Changes from 1 commit
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
Prev Previous commit
Increase code coverage
  • Loading branch information
cmaglie committed Oct 30, 2023
commit ad261d62a2747fb8d98bcaabdc5cd625cc35d654
7 changes: 7 additions & 0 deletions commands/debug/debug_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,13 @@ func TestGetCommandLine(t *testing.T) {
require.Error(t, err)
}

{
// Check programmer not found
req.Programmer = "not-existent"
_, err := getCommandLine(req, pme)
require.Error(t, err)
}

req.Programmer = "edbg"
command, err := getCommandLine(req, pme)
require.Nil(t, err)
Expand Down