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

[test] refactor d-bus test #1834

Merged
merged 1 commit into from
Apr 29, 2023
Merged

Conversation

bukepo
Copy link
Member

@bukepo bukepo commented Apr 19, 2023

This commit refactors the d-bus client test:

  1. use systemd to manage the otbr-agent service so that setsid is not necessary which requires inputting user password running locally
  2. simplify tests by adding ot_ctl and factoryreset function
  3. clean up main function by moving test cases into separate functions

Other updates:

  • adds missing Ready signal in introspect.xml
  • fixes path to factory conf file

tests/dbus/test-client Outdated Show resolved Hide resolved
tests/dbus/test-client Outdated Show resolved Hide resolved
Copy link
Contributor

@zhanglongxia zhanglongxia left a comment

Choose a reason for hiding this comment

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

LGTM

This commit refactors the d-bus client test:

1. use systemd to manage the otbr-agent service so that setsid is not
   necessary which requires inputting user password running locally
2. simplify tests by adding ot_ctl and factoryreset function
3. clean up main function by moving test cases into separate functions

This commit also

* adds missing *Ready* signal in introspect.xml
* fixes path to factory conf file
@jwhui jwhui merged commit 7892043 into openthread:main Apr 29, 2023
31 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants