Skip to content

Commit 53cf343

Browse files
committed
check nr args is 1 in stop containers
1 parent ecccab2 commit 53cf343

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

test_harness/multiple_node/run_tests.sh

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ REPO="$(./print_repo_root_location)"
1212
# Set up /irods_shared (created as a shared mount by the docker compose configuration) and subfolders for tests.
1313

1414
# Get the numeric user and group id's for irods service account on the provider. This helps to set up the test user
15-
# (named 'user') with proper permissions for the shared volume on the client node.
15+
# with proper permissions for the shared volume on the client node.
1616
groupadd -o -g $(stat -c%g /irods_shared) irods
1717
useradd -g irods -u $(stat -c%u /irods_shared) irods
1818

@@ -23,18 +23,18 @@ chmod 777 /irods_shared/reg_resc
2323
chmod g+ws /irods_shared/tmp
2424

2525
# Make a test user in group irods, who will run the client tests.
26-
useradd -G irods -m -s/bin/bash user
26+
useradd -G irods -m -s/bin/bash prc-test-user
2727

2828
# Create writable copy of this repo.
2929
cp -r /"$REPO"{,.copy}
3030
REPO+=.copy
31-
chown -R user "$REPO"
31+
chown -R prc-test-user "$REPO"
3232
chmod u+w "$REPO"/irods/test/test-data
3333

3434
# Install PRC from the repo.
3535
$PYTHON -m pip install "$REPO[tests]"
3636

37-
su - user -c "\
37+
su - prc-test-user -c "\
3838
$PYTHON '$DIR'/iinit.py \
3939
host irods-catalog-provider \
4040
port 1247 \

test_harness/multiple_node/stop_containers.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,9 @@ usage() {
77
echo >&2 "usage: $0 irods_version"; exit 1;
88
}
99

10-
if [ $# -eq 2 ]; then
10+
if [ $# -eq 1 ]; then
1111
IRODS_VERSION=$1
12-
shift $#
12+
shift
1313
else
1414
usage
1515
fi

0 commit comments

Comments
 (0)