You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cloudberry.apache.org by yj...@apache.org on 2024/12/25 23:38:57 UTC
(cloudberry) 08/24: gpcheckcat: Make opt block similar to 6X
This is an automated email from the ASF dual-hosted git repository.
yjhjstz pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/cloudberry.git
commit 2dd5c39969b06d9b1d9ddada0f2932107699fc9e
Author: Orhan Kislal <ok...@apache.org>
AuthorDate: Tue Aug 16 16:03:12 2022 -0700
gpcheckcat: Make opt block similar to 6X
---
gpMgmt/bin/gpcheckcat | 9 ++++++---
1 file changed, 6 insertions(+), 3 deletions(-)
diff --git a/gpMgmt/bin/gpcheckcat b/gpMgmt/bin/gpcheckcat
index eefcce135c..fcdaede138 100755
--- a/gpMgmt/bin/gpcheckcat
+++ b/gpMgmt/bin/gpcheckcat
@@ -3322,9 +3322,12 @@ def check_gpexpand():
def check_test_subset_parameter_count():
test_option_count = 0
- test_option_count = test_option_count + 1 if GV.opt['-R'] else test_option_count
- test_option_count = test_option_count + 1 if GV.opt['-s'] else test_option_count
- test_option_count = test_option_count + 1 if GV.opt['-C'] else test_option_count
+ if GV.opt['-R']:
+ test_option_count += 1
+ if GV.opt['-s']:
+ test_option_count += 1
+ if GV.opt['-C']:
+ test_option_count += 1
if test_option_count > 1:
myprint("Error: multiple test subset options are selected. Please pass only one of [-R, -s, -C] if necessary.\n")
setError(ERROR_NOREPAIR)
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@cloudberry.apache.org
For additional commands, e-mail: commits-help@cloudberry.apache.org