From def2af1653ea4f37fa3e033d6bea40d0dfc9f0e8 Mon Sep 17 00:00:00 2001 From: Yihau Chen Date: Fri, 21 Apr 2023 16:31:35 +0800 Subject: [PATCH] ci: fix test result doesn't upload (#31297) --- .buildkite/hooks/post-command | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.buildkite/hooks/post-command b/.buildkite/hooks/post-command index e458ca2cc..988e76497 100644 --- a/.buildkite/hooks/post-command +++ b/.buildkite/hooks/post-command @@ -34,7 +34,7 @@ else SUCCESS=false fi - if [[ -n $BUILDKITE && -f "results.json" ]]; then + if [[ -n $BUILDKITE ]]; then if need_to_upload_test_result; then if [[ -f "results.json" ]]; then # extract lines which start with '{'