Skip to content

CPT tests take longer than expected #1071

@philipanda

Description

@philipanda

Device

na

RTE version

na

OSFV version

develop

Affected component(s) or functionality

CPT tests

Brief summary

The tests take ~50% longer than expected

How reproducible

100%

How to reproduce

Run and measure run time

Expected behavior

Should take as much as the platform-config specifies

Actual behavior

~50% longer

Link to screenshots or logs

Can't include the whole log as the tests measure and log the temperature every second which produces over 300MB of logs during the test

Image

Additional context

It's because the tests Sleep for the configured time, the actual execution adds to that time a lot.
Instead of Sleeping for the configured time, the tests should measure the real date&time and end when the specified time has passed

This does not affect CPF and STB tests that much, because the measure interval there is much larger (~1m CPF and ~5m STB), so the cumulative result of this is not nearly as visible

Solutions you've tried

Using the DateTime library would solve this

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions