Przeglądaj źródła

Kill all durio instances after the test is done.

Jing Yang 4 lat temu
rodzic
commit
fb67f52c1e
1 zmienionych plików z 5 dodań i 1 usunięć
  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'