Browse Source

Kill all durio instances after the test is done.

Jing Yang 4 năm trước cách đây
mục cha
commit
fb67f52c1e
1 tập tin đã thay đổi với 5 bổ sung1 xóa
  1. 5 1
      durio/build.sh

+ 5 - 1
durio/build.sh

@@ -23,4 +23,8 @@ rsync -av '/tmp/ruaft/durio' bob:/tmp/durio
 ssh bob '
   RUST_LOG=warp,tarpc=error,ruaft=debug,kvraft=debug,durio nohup /tmp/durio 2 1>>/tmp/durio.out 2>>/tmp/durio.err &
 '
-RUST_LOG=warp,tarpc=error,ruaft=debug,kvraft=debug,durio cargo run 0
+
+RUST_LOG=warp,tarpc=error,ruaft=debug,kvraft=debug,durio cargo run 0 || echo "Done"
+
+ssh alice 'pkill -9 durio || echo nothing'
+ssh bob 'pkill -9 durio || echo nothing'