Skip to content

Commit b8aacf2

Browse files
committed
test(mantis): supervise cleanup through bash
1 parent 0bcc6ce commit b8aacf2

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

‎scripts/mantis/mantis-sut-container.sh‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ run_cleanup_with_deadline() {
2222
shift
2323
# timeout owns a separate process group, so escalation reaches Docker and
2424
# network-cleanup descendants instead of killing only the caller's sudo.
25-
exec "$timeout_bin" --signal=TERM --kill-after=5s 30s "$0" "__${action}" "$@"
25+
exec "$timeout_bin" --signal=TERM --kill-after=5s 30s /bin/bash "$0" "__${action}" "$@"
2626
}
2727

2828
require_cleanup_timeout_parent() {

‎test/scripts/mantis-telegram-desktop-proof-workflow.test.ts‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -198,7 +198,7 @@ describe("Mantis Telegram Desktop proof workflow", () => {
198198

199199
const sutWrapper = readFileSync(SUT_CONTAINER_WRAPPER, "utf8");
200200
expect(sutWrapper).toContain(
201-
'exec "$timeout_bin" --signal=TERM --kill-after=5s 30s "$0" "__${action}" "$@"',
201+
'exec "$timeout_bin" --signal=TERM --kill-after=5s 30s /bin/bash "$0" "__${action}" "$@"',
202202
);
203203
expect(sutWrapper).toContain('"$(readlink -f "/proc/$PPID/exe")" == "$timeout_bin"');
204204
expect(sutWrapper).toContain("__stop)");

0 commit comments

Comments
 (0)