Skip to content

Commit

Permalink
spidev: improve regexp for testing
Browse files Browse the repository at this point in the history
Signed-off-by: Ronald G. Minnich <[email protected]>
  • Loading branch information
rminnich committed Jan 7, 2024
1 parent 176635c commit 4795af5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cmds/fwtools/spidev/spidev_linux_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ func TestRun(t *testing.T) {
{
name: "id",
args: []string{"id"},
wantOutputRegex: regexp.MustCompile("[0-9a-fA-F][0-9a-fA-F][0-9a-fA-F][0-9a-fA-F][0-9a-fA-F][0-9a-fA-F]\n"),
wantOutputRegex: regexp.MustCompile("[0-9a-fA-F]{6}\n"),
},
{
name: "id failing IO",
Expand Down

0 comments on commit 4795af5

Please sign in to comment.