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

examples: zephyr: certificate_provisioning: pytest improvements #671

Merged
merged 3 commits into from
Nov 14, 2024

Commits on Nov 13, 2024

  1. examples: zephyr: cert: drop spaces around '='

    This suppresses flake8's "unexpected spaces around keyword / parameter
    equals" warning.
    
    Signed-off-by: Marcin Niestroj <[email protected]>
    mniestroj committed Nov 13, 2024
    Configuration menu
    Copy the full SHA
    57846a2 View commit details
    Browse the repository at this point in the history
  2. examples: zephyr: cert: use build_dir as CWD

    Pytest invokes shell scripts, which create and use certificates in current
    working directory. This means that those files are created in current
    twister invocation directory.
    
    Use Zephyr example build directory, so that each example has its own
    certificates. Additionally this allows to keep twister CWD uncluttered.
    
    Signed-off-by: Marcin Niestroj <[email protected]>
    mniestroj committed Nov 13, 2024
    Configuration menu
    Copy the full SHA
    2d403e2 View commit details
    Browse the repository at this point in the history
  3. examples: zephyr: cert: use twister serial for mcumgr

    Right now it is necessary to either specify
    --pytest-args=--device-port=SERIAL over commandline or set
    'CI_DEVICENAME_PORT' and 'hil_board' environment variables.
    
    This makes little sense in context of manual testing, since twister serial
    port should be used by default for mcumgr communication.
    
    Fallback to twister serial when neither CLI nor environment variables
    specify explicit serial port.
    
    Signed-off-by: Marcin Niestroj <[email protected]>
    mniestroj committed Nov 13, 2024
    Configuration menu
    Copy the full SHA
    7810c82 View commit details
    Browse the repository at this point in the history