Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Copyright: (c) 2025, Intel Corporation

Check warning on line 1 in scripts/pylib/power-twister-harness/stm32l562e_dk/PowerShieldConfig.py

View workflow job for this annotation

GitHub Actions / Run compliance checks on patch series (PR)

Copyright missing

scripts/pylib/power-twister-harness/stm32l562e_dk/PowerShieldConfig.py:1 File has no SPDX-FileCopyrightText header, consider adding one.

Check warning on line 1 in scripts/pylib/power-twister-harness/stm32l562e_dk/PowerShieldConfig.py

View workflow job for this annotation

GitHub Actions / Run compliance checks on patch series (PR)

License missing

scripts/pylib/power-twister-harness/stm32l562e_dk/PowerShieldConfig.py:1 File has no SPDX-License-Identifier header, consider adding one.
# Author: Arkadiusz Cholewinski <[email protected]>
from dataclasses import dataclass, field

Expand Down Expand Up @@ -70,7 +70,6 @@
FREQ_2 = "2" # 2 Hz frequency
FREQ_1 = "1" # 1 Hz frequency

output_file: str = "rawData.csv"
sampling_frequency: str = SamplingFrequency.FREQ_1K
data_format: str = DataFormat.BIN_HEXA
function_mode: str = FunctionMode.HIGH
Expand Down
6 changes: 6 additions & 0 deletions scripts/pylib/power-twister-harness/test_power.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
# SPDX-License-Identifier: Apache-2.0

import logging
import os

import pytest
from abstract.PowerMonitor import PowerMonitor
Expand All @@ -27,6 +28,11 @@ def test_power_harness(probe_class: PowerMonitor, test_data, request, dut: Devic
# Initialize the probe with the provided path
probe = probe_class # Instantiate the power monitor probe

# Set path for raw output data
build_dir_path = request.config.getoption("--build-dir")
if os.path.exists(build_dir_path):
probe.power_shield_conf.output_file = os.path.join(build_dir_path, "power_raw_data.csv")

# Get test data
measurements_dict = test_data

Expand Down
Loading