From 2f0fb48547acdbf440522ca6d14cc213d4a460b1 Mon Sep 17 00:00:00 2001 From: Anan Zhuang Date: Fri, 12 Nov 2021 23:41:54 +0000 Subject: [PATCH] update the usage section with new parameters Signed-off-by: Anan Zhuang --- cypress/bwctest-osd.sh | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/cypress/bwctest-osd.sh b/cypress/bwctest-osd.sh index 8e296727c97b..64f3bdae4ced 100755 --- a/cypress/bwctest-osd.sh +++ b/cypress/bwctest-osd.sh @@ -14,8 +14,10 @@ function usage() { echo "Optional arguments:" echo -e "-a BIND_ADDRESS\t, defaults to localhost | 127.0.0.1, can be changed to any IP or domain name for the cluster location." echo -e "-p BIND_PORT\t, defaults to 9200 or 5601 depends on OpenSearch or Dashboards, can be changed to any port for the cluster location." - echo -e "-b BUNDLED_OSD\t(true | false), defaults to true. Specify the usage of bundled Dashboards or not." - echo -e "-c CREDENTIAL\t(usename:password), no defaults, effective when SECURITY_ENABLED=true." + echo -e "-b BUNDLED_OSD\t(true | false), defaults to false. Specify the usage of bundled Dashboards or not." + echo -e "-v VERSIONS\t(true | false), defaults to a defind test array in the script. Specify the versions of the tested Dashboards. It could be a single version or multiple." + echo -e "-o OPENSEARCH\t, no defaults and must provide. Specify the tested OpenSearch which must be named opensearch and formatted as tar.gz." + echo -e "-d OSD\t, no defaults and must provide. Specify the tested OpenSearch Dashboards which must be named opensearch-dashboards and formatted as tar.gz." echo -e "-h\tPrint this message." echo "--------------------------------------------------------------------------" } @@ -133,7 +135,7 @@ do echo "---------------set up opensearch env for $version---------------" rm -rf "$opensearch_dir/data" cd $opensearch_dir - cp "$cwd/cypress/test-data/osd/$version.tar.gz" . + cp "$cwd/cypress/test-data/$osdtype/$version.tar.gz" . tar -xvf "$opensearch_dir/$version.tar.gz" >> /dev/null 2>&1 rm "$version.tar.gz" cd "$testdir"