From 4adb6772a13e036f770ef6110c665e663db8cade Mon Sep 17 00:00:00 2001 From: Niklaus Schen <8458369+Water-Melon@users.noreply.github.com> Date: Wed, 5 Jun 2024 13:25:53 +0800 Subject: [PATCH] tests(helpers): specify a larger buffer to avoid read stalling issues caused by insufficient buffer size (#13163) --- spec/helpers.lua | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/spec/helpers.lua b/spec/helpers.lua index 5cedb14fee35..71eab581cc76 100644 --- a/spec/helpers.lua +++ b/spec/helpers.lua @@ -3312,7 +3312,8 @@ luassert:register("assertion", "partial_match", partial_match, -- (ok, code, stdout, stderr); if `returns` is false, -- returns either (false, stderr) or (true, stderr, stdout). function exec(cmd, returns) - local ok, stdout, stderr, _, code = shell.run(cmd, nil, 0) + --100MB for retrieving stdout & stderr + local ok, stdout, stderr, _, code = shell.run(cmd, nil, 0, 1024*1024*100) if returns then return ok, code, stdout, stderr end