@@ -241,35 +241,35 @@ run_test() {
241241 if [[ " $test_type " == " e2e" ]]; then
242242 # E2E: extract codebase, source include.sh, then run the script
243243 # Use tmpfs for ~/.pm2 to speed up PM2 file I/O
244- cat " $CODEBASE_TAR " | docker run --rm -i \
244+ cat " $CODEBASE_TAR " | docker run --rm -i --init \
245245 --mount type=tmpfs,destination=/root/.pm2 \
246246 " $IMAGE_NAME " \
247247 bash -c " tar -xf - && source test/e2e/include.sh && bash $test_path " \
248248 > " $log_file " 2>&1
249249 elif [[ " $test_type " == " bpm" ]]; then
250250 # BPM: mocha with extended timeout
251- cat " $CODEBASE_TAR " | docker run --rm -i \
251+ cat " $CODEBASE_TAR " | docker run --rm -i --init \
252252 --mount type=tmpfs,destination=/root/.pm2 \
253253 " $IMAGE_NAME " \
254254 bash -c " tar -xf - && $MOCHA --exit --timeout 10000 --bail $test_path " \
255255 > " $log_file " 2>&1
256256 elif [[ " $test_type " == " axon" ]]; then
257257 # Axon: custom runner (runs test file directly)
258- cat " $CODEBASE_TAR " | docker run --rm -i \
258+ cat " $CODEBASE_TAR " | docker run --rm -i --init \
259259 " $IMAGE_NAME " \
260260 bash -c " tar -xf - && $JSRUN $test_path " \
261261 > " $log_file " 2>&1
262262 elif [[ " $test_type " == " io-agent" ]] || [[ " $test_type " == " axon-rpc" ]]; then
263263 # IO Agent / Axon-RPC: mocha with spec reporter
264- cat " $CODEBASE_TAR " | docker run --rm -i \
264+ cat " $CODEBASE_TAR " | docker run --rm -i --init \
265265 --mount type=tmpfs,destination=/root/.pm2 \
266266 " $IMAGE_NAME " \
267267 bash -c " tar -xf - && $MOCHA --reporter spec --exit --bail $test_path " \
268268 > " $log_file " 2>&1
269269 else
270270 # Unit: extract codebase, run with mocha
271271 # Use tmpfs for ~/.pm2 to speed up PM2 file I/O
272- cat " $CODEBASE_TAR " | docker run --rm -i \
272+ cat " $CODEBASE_TAR " | docker run --rm -i --init \
273273 --mount type=tmpfs,destination=/root/.pm2 \
274274 " $IMAGE_NAME " \
275275 bash -c " tar -xf - && $MOCHA --exit --bail $test_path " \
0 commit comments