From 8983344c11bb9d4531399c56bce22f594cd85a32 Mon Sep 17 00:00:00 2001 From: zhihanz Date: Thu, 13 Jan 2022 18:18:43 +0800 Subject: [PATCH] disable std io buffer during CI(otherwise it would introduce flaky issue during redirection) --- .gitignore | 2 ++ tests/databend-test | 3 +-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/.gitignore b/.gitignore index 04f2c6fbc999a..bacf93eaa758f 100644 --- a/.gitignore +++ b/.gitignore @@ -4,6 +4,8 @@ # visual studio code files .vscode .dir-locals.el +.bash_history +.mysql_history # Rust target/ diff --git a/tests/databend-test b/tests/databend-test index 8a4c2769c85e6..f006fd8cba2cd 100755 --- a/tests/databend-test +++ b/tests/databend-test @@ -65,7 +65,6 @@ def run_single_test(args, ext, client_options, case_file, stdout_file, pattern = "sed '/^\s*--/d' {test} | {client} {options} > {stdout} 2>&1" command = pattern.format(**params) - proc = Popen(command, shell=True, env=os.environ) start_time = datetime.now() while (datetime.now() - @@ -546,7 +545,7 @@ if __name__ == '__main__': help='Path to databend-query binary or name of binary in PATH') parser.add_argument('-c', '--client', - default='mysql', + default='stdbuf -i0 -o0 -e0 mysql', help='Client program') parser.add_argument('-opt', '--options',