Skip to content

Commit d90320a

Browse files
committed
more
1 parent 4c3ab3a commit d90320a

6 files changed

Lines changed: 8 additions & 8 deletions

File tree

test_package_installation/common/run_multi_schedule.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010

1111
set -euo pipefail
1212

13-
if [ -z "$1" ]; then
13+
if [ "$#" -ne 1 ]; then
1414
echo "Error: some arguments are missing." >&2
1515
echo "Usage: $0 <pg_binary_path>" >&2
1616
exit 1

test_package_installation/common/test_basics.sh

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010

1111
set -euo pipefail
1212

13-
if [ -z "$1" ] || [ -z "$2" ] || [ -z "$3" ]; then
13+
if [ "$#" -ne 3 ]; then
1414
echo "Error: some arguments are missing." >&2
1515
echo "Usage: $0 <expected_pg_major_version> <expected_citus_full_version> <pg_binary_path>" >&2
1616
exit 1
@@ -27,7 +27,7 @@ SHARDS_PER_NODE=5
2727
FIRST_NODE_PORT=9700
2828

2929
run_psql_cmd() {
30-
if [ -z "$1" ] || [ -z "$2" ]; then
30+
if [ "$#" -ne 2 ]; then
3131
echo "Error: some arguments are missing." >&2
3232
echo "Usage: run_psql_cmd <port_number> <sql_command>" >&2
3333
exit 1
@@ -123,7 +123,7 @@ result=$(
123123
if [ "$result" = "t" ]; then
124124
echo "Verified cluster creation, distributed table creation and shard rebalancing. Shards are distributed evenly across nodes."
125125
else
126-
echo "Error: Citus cluster creation failed. Shards are not distributed evenly across nodes, see below for details:" >&2
126+
echo "Error: Failed. Shards are not distributed evenly across nodes, see below for details:" >&2
127127
run_psql_cmd "$FIRST_NODE_PORT" "
128128
SELECT nodeport,
129129
COUNT(shardid) AS cnt

test_package_installation/deb/install_package.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99

1010
set -euo pipefail
1111

12-
if [ -z "$1" ] || [ -z "$2" ]; then
12+
if [ "$#" -ne 2 ]; then
1313
echo "Error: some arguments are missing." >&2
1414
echo "Usage: $0 <pg_major_version> <citus_full_version>" >&2
1515
exit 1

test_package_installation/deb/install_regression_test_deps.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99

1010
set -euo pipefail
1111

12-
if [ -z "$1" ] || [ -z "$2" ]; then
12+
if [ "$#" -ne 2 ]; then
1313
echo "Error: some arguments are missing." >&2
1414
echo "Usage: $0 <pg_major_version> <citus_full_version>" >&2
1515
exit 1

test_package_installation/rpm/install_package.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99

1010
set -euo pipefail
1111

12-
if [ -z "$1" ] || [ -z "$2" ] || [ -z "$3" ]; then
12+
if [ "$#" -ne 3 ]; then
1313
echo "Error: some arguments are missing." >&2
1414
echo "Usage: $0 <pg_major_version> <citus_full_version> <os_version>" >&2
1515
exit 1

test_package_installation/rpm/install_regression_test_deps.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99

1010
set -euo pipefail
1111

12-
if [ -z "$1" ] || [ -z "$2" ]; then
12+
if [ "$#" -ne 2 ]; then
1313
echo "Error: some arguments are missing." >&2
1414
echo "Usage: $0 <pg_major_version> <citus_full_version>" >&2
1515
exit 1

0 commit comments

Comments
 (0)