Skip to content

Commit

Permalink
tests: Fix workflow
Browse files Browse the repository at this point in the history
Set default value for pytest_path.
Fix wrong fixture.
Move memfault test.

Signed-off-by: Jorgen Kvalvaag <[email protected]>
  • Loading branch information
jorgenmk committed Nov 28, 2024
1 parent 258cce9 commit 5941ece
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 5 deletions.
7 changes: 5 additions & 2 deletions .github/workflows/on_target.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ on:
required: false
pytest_path:
type: string
required: true
required: false
default: tests

workflow_dispatch:
Expand All @@ -34,7 +34,7 @@ on:
pytest_path:
description: Select test execution path
type: string
required: true
required: false
default: tests

jobs:
Expand Down Expand Up @@ -107,6 +107,9 @@ jobs:
TEST_REPORT_NAME: OOB Firwmare Test Report
DUT1_HW_REVISION: ${{ vars.DUT1_HW_REVISION }}
SEGGER_PPK: ${{ secrets.SEGGER_DUT_PPK }}
MEMFAULT_ORGANIZATION_TOKEN: ${{ secrets.MEMFAULT_ORGANIZATION_TOKEN }}
MEMFAULT_ORGANIZATION_SLUG: ${{ vars.MEMFAULT_ORGANIZATION_SLUG }}
MEMFAULT_PROJECT_SLUG: ${{ vars.MEMFAULT_PROJECT_SLUG }}

- name: Commit and Push Badge File to gh-pages Branch
continue-on-error: true
Expand Down
2 changes: 1 addition & 1 deletion tests/on_target/tests/test_functional/test_fota.py
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ def _run_fota(bundleId, fota_type, fotatimeout=APP_FOTA_TIMEOUT, test_fota_resum

return _run_fota

def test_app_fota(t91x_board, hex_file, run_fota_fixture):
def test_app_fota(t91x_fota, hex_file, run_fota_fixture):
'''
Test application FOTA on nrf9151
'''
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -62,8 +62,6 @@ def wait_for_heartbeat(timestamp_old_heartbeat_evt):
else:
raise AssertionError("No new heartbeat event observed")

@pytest.mark.memfault
@pytest.mark.dut1
def test_memfault(t91x_board, hex_file):
flash_device(os.path.abspath(hex_file))
t91x_board.uart.xfactoryreset()
Expand Down

0 comments on commit 5941ece

Please sign in to comment.