summaryrefslogtreecommitdiffstats
path: root/external/poky/meta/recipes-rt/rt-tests/files/rt_bmark.py
diff options
context:
space:
mode:
authortakeshi_hoshina <takeshi_hoshina@mail.toyota.co.jp>2020-11-02 11:07:33 +0900
committertakeshi_hoshina <takeshi_hoshina@mail.toyota.co.jp>2020-11-02 11:07:33 +0900
commit1c7d6584a7811b7785ae5c1e378f14b5ba0971cf (patch)
treecd70a267a5ef105ba32f200aa088e281fbd85747 /external/poky/meta/recipes-rt/rt-tests/files/rt_bmark.py
parent4204309872da5cb401cbb2729d9e2d4869a87f42 (diff)
recipes
Diffstat (limited to 'external/poky/meta/recipes-rt/rt-tests/files/rt_bmark.py')
-rwxr-xr-xexternal/poky/meta/recipes-rt/rt-tests/files/rt_bmark.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/external/poky/meta/recipes-rt/rt-tests/files/rt_bmark.py b/external/poky/meta/recipes-rt/rt-tests/files/rt_bmark.py
index 080a6558..3b84447a 100755
--- a/external/poky/meta/recipes-rt/rt-tests/files/rt_bmark.py
+++ b/external/poky/meta/recipes-rt/rt-tests/files/rt_bmark.py
@@ -130,7 +130,7 @@ def log_test_header(seq_no, nr_of_tests, name):
#-------------------------------------------------------------------------------
def start_stress(*args):
- stress_cmd = [ "stress" ]
+ stress_cmd = [ "stress-ng" ]
added_stress_types = []
req_stress_types = set(args)
cpu_cnt = str(multiprocessing.cpu_count())
@@ -166,12 +166,12 @@ def start_stress(*args):
log(" Command: '", stress_cmd_str, "'")
log()
- # preexec_fn=os.setsid causes stress to be executed in a separate
+ # start_new_session causes stress to be executed in a separate
# session, => it gets a new process group (incl. children). It
# can then be terminated using os.killpg in end_stress without
# terminating this script.
- p = subprocess.Popen(stress_cmd, preexec_fn=os.setsid)
+ p = subprocess.Popen(stress_cmd, start_new_session=True)
return p