diff options
Diffstat (limited to 'src/testing/test_prepare.sh')
-rwxr-xr-x | src/testing/test_prepare.sh | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/src/testing/test_prepare.sh b/src/testing/test_prepare.sh index 2c9191c..202342d 100755 --- a/src/testing/test_prepare.sh +++ b/src/testing/test_prepare.sh | |||
@@ -22,6 +22,7 @@ function cleanup() | |||
22 | { | 22 | { |
23 | for n in `jobs -p` | 23 | for n in `jobs -p` |
24 | do | 24 | do |
25 | kill -SIGCONT $n # in case one provider was suspended | ||
25 | kill $n 2> /dev/null || true | 26 | kill $n 2> /dev/null || true |
26 | done | 27 | done |
27 | rm -rf $CONF $CONF_4 $WALLET_DB $R1FILE $R2FILE $B1FILE $B2FILE $TMP_DIR | 28 | rm -rf $CONF $CONF_4 $WALLET_DB $R1FILE $R2FILE $B1FILE $B2FILE $TMP_DIR |
@@ -394,10 +395,17 @@ echo -n "Launching anastasis services ..." | |||
394 | # PREFIX="valgrind --log-file=anastasis-httpd.%p.log" | 395 | # PREFIX="valgrind --log-file=anastasis-httpd.%p.log" |
395 | PREFIX="" | 396 | PREFIX="" |
396 | $PREFIX anastasis-httpd -L INFO -c $CONF_1 2> anastasis-httpd_1.log & | 397 | $PREFIX anastasis-httpd -L INFO -c $CONF_1 2> anastasis-httpd_1.log & |
398 | PPID_1=$! | ||
397 | $PREFIX anastasis-httpd -L INFO -c $CONF_2 2> anastasis-httpd_2.log & | 399 | $PREFIX anastasis-httpd -L INFO -c $CONF_2 2> anastasis-httpd_2.log & |
400 | PPID_2=$! | ||
398 | $PREFIX anastasis-httpd -L INFO -c $CONF_3 2> anastasis-httpd_3.log & | 401 | $PREFIX anastasis-httpd -L INFO -c $CONF_3 2> anastasis-httpd_3.log & |
402 | PPID_3=$! | ||
399 | $PREFIX anastasis-httpd -L INFO -c $CONF_4 2> anastasis-httpd_4.log & | 403 | $PREFIX anastasis-httpd -L INFO -c $CONF_4 2> anastasis-httpd_4.log & |
400 | 404 | PPID_4=$! | |
405 | export PPID_1 | ||
406 | export PPID_2 | ||
407 | export PPID_3 | ||
408 | export PPID_4 | ||
401 | 409 | ||
402 | if test $1 = 'fees' | 410 | if test $1 = 'fees' |
403 | then | 411 | then |
@@ -548,6 +556,8 @@ then | |||
548 | export WALLET_DB | 556 | export WALLET_DB |
549 | fi | 557 | fi |
550 | 558 | ||
559 | echo '- use kill -SIGSTOP $PPID_$NUM ($NUM: 1-4) to suspend providers' | ||
560 | |||
551 | bash | 561 | bash |
552 | 562 | ||
553 | exit 0 | 563 | exit 0 |