Skip to content

Commit a82fbbb

Browse files
committed
chore: debug
1 parent 0468956 commit a82fbbb

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

test/run-proxy.sh

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ PROXY_FS=$PROXY_FS
2424
PROXY_PORT=${PROXY_PORT:-8080}
2525
TIMEOUT=${TIMEOUT:-10m}
2626

27-
trap 'kill -9 $PROXY_PID' EXIT
27+
trap 'kill -9 $PROXY_PID; kill -9 $PS_PID' EXIT
2828

2929
if [ $CLOUD == "s3" ]; then
3030
sed 's/$PORT/'$PROXY_PORT'/' < test/s3proxy.properties > test/s3proxy_test.properties
@@ -33,7 +33,9 @@ if [ $CLOUD == "s3" ]; then
3333
echo jclouds.provider=filesystem >>test/s3proxy_test.properties
3434
echo jclouds.filesystem.basedir=/tmp/s3proxy >>test/s3proxy_test.properties
3535
fi
36-
PROXY_BIN="java -Xms512m -Xmx16g --add-opens java.base/java.lang=ALL-UNNAMED -jar s3proxy.jar --properties test/s3proxy_test.properties"
36+
PROXY_BIN="java --add-opens java.base/java.lang=ALL-UNNAMED -jar s3proxy.jar --properties test/s3proxy_test.properties"
37+
(java --version; for i in $(seq 100); do ps aux|grep -e java -e tigrisfs; sleep 7; done) &
38+
PS_PID=$!
3739
export AWS_ACCESS_KEY_ID=foo
3840
export AWS_SECRET_ACCESS_KEY=bar
3941
export ENDPOINT=http://localhost:$PROXY_PORT

0 commit comments

Comments
 (0)