diff options
author | Christian Grothoff <christian@grothoff.org> | 2022-06-26 16:25:41 +0200 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2022-06-26 16:25:41 +0200 |
commit | c291bea80bd9a7320b1ee6b966d15abcea3d2d48 (patch) | |
tree | 9a670257c798556d86a81d956cdbfd8e7a3d12ae /src | |
parent | e28112c7c4c6c3f3c0fd129fcf2d2b4ef271d01f (diff) | |
download | anastasis-gtk-c291bea80bd9a7320b1ee6b966d15abcea3d2d48.tar.gz anastasis-gtk-c291bea80bd9a7320b1ee6b966d15abcea3d2d48.tar.bz2 anastasis-gtk-c291bea80bd9a7320b1ee6b966d15abcea3d2d48.zip |
fix #7228: make it easy to test hanging providers
Diffstat (limited to 'src')
-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() { for n in `jobs -p` do + kill -SIGCONT $n # in case one provider was suspended kill $n 2> /dev/null || true done rm -rf $CONF $CONF_4 $WALLET_DB $R1FILE $R2FILE $B1FILE $B2FILE $TMP_DIR @@ -394,10 +395,17 @@ echo -n "Launching anastasis services ..." # PREFIX="valgrind --log-file=anastasis-httpd.%p.log" PREFIX="" $PREFIX anastasis-httpd -L INFO -c $CONF_1 2> anastasis-httpd_1.log & +PPID_1=$! $PREFIX anastasis-httpd -L INFO -c $CONF_2 2> anastasis-httpd_2.log & +PPID_2=$! $PREFIX anastasis-httpd -L INFO -c $CONF_3 2> anastasis-httpd_3.log & +PPID_3=$! $PREFIX anastasis-httpd -L INFO -c $CONF_4 2> anastasis-httpd_4.log & - +PPID_4=$! +export PPID_1 +export PPID_2 +export PPID_3 +export PPID_4 if test $1 = 'fees' then @@ -548,6 +556,8 @@ then export WALLET_DB fi +echo '- use kill -SIGSTOP $PPID_$NUM ($NUM: 1-4) to suspend providers' + bash exit 0 |