Salome HOME
projects
/
modules
/
kernel.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0692b70
)
Fix bug in test on 24 cores CPU test
author
Anthony Geay
<anthony.geay@edf.fr>
Tue, 19 Oct 2021 05:13:40 +0000
(07:13 +0200)
committer
Anthony Geay
<anthony.geay@edf.fr>
Tue, 19 Oct 2021 05:13:40 +0000
(07:13 +0200)
src/Container/Test/testcontainer.py
patch
|
blob
|
history
diff --git
a/src/Container/Test/testcontainer.py
b/src/Container/Test/testcontainer.py
index 5eb7b255f60b9f85fe1d3526ac56208290a9bb65..59034e3ba79b4d13afcf231d71f669e6cf9f6ad0 100644
(file)
--- a/
src/Container/Test/testcontainer.py
+++ b/
src/Container/Test/testcontainer.py
@@
-71,7
+71,7
@@
class TestResourceManager(unittest.TestCase):
# Check custom script
cont = self.getContainer("test_container_2")
import multiprocessing as mp
- ref_load = [m
ax
(0.1*(i+1),1.0) for i in range(mp.cpu_count())]
+ ref_load = [m
in
(0.1*(i+1),1.0) for i in range(mp.cpu_count())]
cont.setPyScriptForCPULoad('cpu_loads = {}'.format(ref_load))
loads1 = cont.loadOfCPUCores()
self.assertEqual(loads1, ref_load)