Skip to content
This repository was archived by the owner on Jul 17, 2025. It is now read-only.

Commit a4eda40

Browse files
committed
Consistently shut DCM down the same way
1 parent 79416e8 commit a4eda40

File tree

2 files changed

+13
-13
lines changed

2 files changed

+13
-13
lines changed

kernel/tests/s06_rackscale_tests.rs

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
use std::sync::{mpsc::channel, Mutex};
1212

1313
use rexpect::errors::*;
14-
use rexpect::process::signal::SIGTERM;
14+
use rexpect::process::signal::{SIGKILL, SIGTERM};
1515
use rexpect::process::wait::WaitStatus;
1616

1717
use testutils::builder::{BuildArgs, Machine};
@@ -170,7 +170,7 @@ fn rackscale_userspace_smoke_test(is_shmem: bool) {
170170
let controller_ret = controller.join();
171171

172172
let _ignore = shmem_server.send_control('c');
173-
let _ignore = dcm.process.kill(SIGTERM);
173+
let _ignore = dcm.process.kill(SIGKILL);
174174

175175
// If there's been an error, print everything
176176
if controller_ret.is_err() || client_ret.is_err() {
@@ -289,7 +289,7 @@ fn s06_rackscale_phys_alloc_test() {
289289
let client_ret = client.join();
290290
let controller_ret = controller.join();
291291

292-
let _ignore = dcm.process.kill(SIGTERM);
292+
let _ignore = dcm.process.kill(SIGKILL);
293293
let _ignore = shmem_server.send_control('c');
294294

295295
// If there's been an error, print everything
@@ -437,7 +437,7 @@ fn rackscale_fs_test(is_shmem: bool) {
437437
let controller_ret = controller.join();
438438

439439
let _ignore = shmem_server.send_control('c');
440-
let _ignore = dcm.process.kill(SIGTERM);
440+
let _ignore = dcm.process.kill(SIGKILL);
441441

442442
// If there's been an error, print everything
443443
let outputs = all_outputs
@@ -559,7 +559,7 @@ fn s06_rackscale_shmem_fs_prop_test() {
559559
let controller_ret = controller.join();
560560

561561
let _ignore = shmem_server.send_control('c');
562-
let _ignore = dcm.process.kill(SIGTERM);
562+
let _ignore = dcm.process.kill(SIGKILL);
563563

564564
// If there's been an error, print everything
565565
let outputs = all_outputs
@@ -710,7 +710,7 @@ fn s06_rackscale_shmem_shootdown_test() {
710710
let controller_ret = controller.join();
711711

712712
let _ignore = shmem_server.send_control('c');
713-
let _ignore = dcm.process.kill(SIGTERM);
713+
let _ignore = dcm.process.kill(SIGKILL);
714714

715715
// If there's been an error, print everything
716716
if controller_ret.is_err() || (&client_rets).into_iter().any(|ret| ret.is_err()) {
@@ -876,7 +876,7 @@ fn rackscale_userspace_multicore_test(is_shmem: bool) {
876876
let controller_ret = controller.join();
877877

878878
let _ignore = shmem_server.send_control('c');
879-
let _ignore = dcm.process.kill(SIGTERM);
879+
let _ignore = dcm.process.kill(SIGKILL);
880880

881881
// If there's been an error, print everything
882882
let outputs = all_outputs
@@ -1081,7 +1081,7 @@ fn s06_rackscale_shmem_userspace_multicore_multiclient() {
10811081
let controller_ret = controller.join();
10821082

10831083
let _ignore = shmem_server.send_control('c');
1084-
let _ignore = dcm.process.kill(SIGTERM);
1084+
let _ignore = dcm.process.kill(SIGKILL);
10851085

10861086
let outputs = all_outputs
10871087
.lock()
@@ -1228,7 +1228,7 @@ fn rackscale_userspace_rumprt_fs(is_shmem: bool) {
12281228
let controller_ret = controller.join();
12291229

12301230
let _ignore = shmem_server.send_control('c');
1231-
let _ignore = dcm.process.kill(SIGTERM);
1231+
let _ignore = dcm.process.kill(SIGKILL);
12321232

12331233
let outputs = all_outputs
12341234
.lock()

kernel/tests/s11_rackscale_benchmarks.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ use std::path::Path;
1515
use std::sync::{mpsc::channel, Mutex};
1616

1717
use rexpect::errors::*;
18-
use rexpect::process::signal::SIGTERM;
18+
use rexpect::process::signal::{SIGKILL, SIGTERM};
1919
use rexpect::process::wait::WaitStatus;
2020

2121
use testutils::builder::{BuildArgs, Machine};
@@ -282,7 +282,7 @@ fn rackscale_fxmark_benchmark(is_shmem: bool) {
282282
}
283283

284284
let _ignore = shmem_server.send_control('c');
285-
let _ignore = dcm.send_control('c');
285+
let _ignore = dcm.process.kill(SIGKILL);
286286

287287
// If there's been an error, print everything
288288
if controller_ret.is_err() || (&client_rets).into_iter().any(|ret| ret.is_err())
@@ -640,7 +640,7 @@ fn rackscale_vmops_benchmark(is_shmem: bool) {
640640
}
641641

642642
let _ignore = shmem_server.send_control('c');
643-
let _ignore = dcm.process.kill(SIGTERM);
643+
let _ignore = dcm.process.kill(SIGKILL);
644644

645645
// If there's been an error, print everything
646646
if controller_ret.is_err() || (&client_rets).into_iter().any(|ret| ret.is_err()) {
@@ -1011,7 +1011,7 @@ fn rackscale_leveldb_benchmark(is_shmem: bool) {
10111011
}
10121012

10131013
let _ignore = shmem_server.send_control('c');
1014-
let _ignore = dcm.send_control('c');
1014+
let _ignore = dcm.process.kill(SIGKILL);
10151015

10161016
// If there's been an error, print everything
10171017
if controller_ret.is_err() || (&client_rets).into_iter().any(|ret| ret.is_err()) {

0 commit comments

Comments
 (0)