fairdk / lcrs-embedded

LCRS embedded components - "slave" + embedded linux kernel
https://lcrs.fairdanmark.dk/
GNU General Public License v3.0
1 stars 3 forks source link

Add function that generates CPU load, second attempt #7

Closed jvilladsen closed 7 years ago

codecov[bot] commented 7 years ago

Codecov Report

Merging #7 into master will decrease coverage by 0.65%. The diff coverage is 77.27%.

Impacted file tree graph

@@            Coverage Diff            @@
##           master      #7      +/-   ##
=========================================
- Coverage   95.86%   95.2%   -0.66%     
=========================================
  Files          19      20       +1     
  Lines         773     771       -2     
=========================================
- Hits          741     734       -7     
- Misses         32      37       +5
Impacted Files Coverage Δ
lcrs_embedded/system/cpu_load.py 77.27% <77.27%> (ø)
lcrs_embedded/utils/models.py 100% <0%> (ø) :arrow_up:

Continue to review full report at Codecov.

Legend - Click here to learn more Δ = absolute <relative> (impact), ø = not affected, ? = missing data Powered by Codecov. Last update e2cf3c3...eaf5e6e. Read the comment docs.

jvilladsen commented 7 years ago

The code coverage does not detect the body of load_cpu ­- maybe because it is run in a separate process.

benjaoming commented 7 years ago

@jvilladsen perhaps try this:

https://stackoverflow.com/a/36863654/405682

benjaoming commented 7 years ago

But really cool, maybe we should have some data in scan_result about the number of seconds duration of the stress test and the fact that it succeeded?