Skip to content
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

tests/drivers/at_unit: fix unit tests on native #20551

Merged
merged 1 commit into from
Apr 8, 2024

Conversation

derMihai
Copy link
Contributor

@derMihai derMihai commented Apr 8, 2024

Contribution description

#20540 breaks two things:

  • tests/drivers/at/tests-with-config/test_all_configs.sh can not find the AT unit tests anymore
  • afaik there is no UART dev 1 on native, so the unit tests segfault

This PR fixes these issues.

Testing procedure

tests/drivers/at_unit/test_all_configs.sh should finish successfully.

Issues/PRs references

#20540

@github-actions github-actions bot added the Area: tests Area: tests and testing framework label Apr 8, 2024
@benpicco benpicco requested a review from Teufelchen1 April 8, 2024 08:46
@benpicco benpicco added CI: ready for build If set, CI server will compile all applications for all available boards for the labeled PR Type: bug The issue reports a bug / The PR fixes a bug (including spelling errors) labels Apr 8, 2024
Copy link
Contributor

@kfessel kfessel left a comment

Choose a reason for hiding this comment

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

changes look valid to me @Teufelchen1 might want to have a look

@Teufelchen1
Copy link
Contributor

tests/drivers/at/tests-with-config/test_all_configs.sh can not find the AT unit tests anymore

I did not know about this, sorry I missed it.

afaik there is no UART dev 1 on native, so the unit tests segfault

Uh? I'm pretty sure I tested it on my machine, maybe I confused a branch or something.


Thanks for cleaning up after me, looks good!

@derMihai
Copy link
Contributor Author

derMihai commented Apr 8, 2024

Uh? I'm pretty sure I tested it on my machine, maybe I confused a branch or something.

Either it doesn't segfault on your machine by chance, or I don't know how to set UART dev 1 on native. I am only aware of the -c flag that sets the UART dev 0, e.g. test_at_unit.elf -c /dev/ttyS0.

@riot-ci
Copy link

riot-ci commented Apr 8, 2024

Murdock results

✔️ PASSED

6279268 tests/drivers/at_unit: fix unit tests on native

Success Failures Total Runtime
176 0 176 01m:22s

Artifacts

@Teufelchen1 Teufelchen1 added this pull request to the merge queue Apr 8, 2024
Merged via the queue into RIOT-OS:master with commit 43f010c Apr 8, 2024
29 checks passed
@MrKevinWeiss MrKevinWeiss added this to the Release 2024.04 milestone Apr 30, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Area: tests Area: tests and testing framework CI: ready for build If set, CI server will compile all applications for all available boards for the labeled PR Type: bug The issue reports a bug / The PR fixes a bug (including spelling errors)
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants