Skip to content

Commit 8e84c4c

Browse files
committed
irods_shared
1 parent a720e05 commit 8e84c4c

1 file changed

Lines changed: 24 additions & 25 deletions

File tree

docker-testing/run_tests.sh

Lines changed: 24 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -9,31 +9,30 @@ cd "$DIR"
99

1010
REPO="$(./print_repo_root_location)"
1111

12-
if [ -d /irods_shared ]; then
13-
14-
# 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.
16-
groupadd -o -g $(stat -c%g /irods_shared) irods
17-
useradd -g irods -u $(stat -c%u /irods_shared) irods
18-
19-
# Set up useful subdirectories in the client/provider shared volume.
20-
mkdir /irods_shared/{tmp,reg_resc}
21-
chown irods:irods /irods_shared/{tmp,reg_resc}
22-
chmod 777 /irods_shared/reg_resc
23-
chmod g+ws /irods_shared/tmp
24-
25-
# Make a test user in group irods, who will run the client tests.
26-
useradd -G irods -m -s/bin/bash user
27-
28-
# Create writable copy of this repo.
29-
cp -r /"$REPO"{,.copy}
30-
REPO+=.copy
31-
chown -R user "$REPO"
32-
chmod u+w "$REPO"/irods/test/test-data
33-
34-
# Install PRC from the repo.
35-
$PYTHON -m pip install "$REPO[tests]"
36-
fi
12+
# Set up /irods_shared (created as a shared mount by the docker compose configuration) and subfolders for tests.
13+
14+
# 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.
16+
groupadd -o -g $(stat -c%g /irods_shared) irods
17+
useradd -g irods -u $(stat -c%u /irods_shared) irods
18+
19+
# Set up useful subdirectories in the client/provider shared volume.
20+
mkdir /irods_shared/{tmp,reg_resc}
21+
chown irods:irods /irods_shared/{tmp,reg_resc}
22+
chmod 777 /irods_shared/reg_resc
23+
chmod g+ws /irods_shared/tmp
24+
25+
# Make a test user in group irods, who will run the client tests.
26+
useradd -G irods -m -s/bin/bash user
27+
28+
# Create writable copy of this repo.
29+
cp -r /"$REPO"{,.copy}
30+
REPO+=.copy
31+
chown -R user "$REPO"
32+
chmod u+w "$REPO"/irods/test/test-data
33+
34+
# Install PRC from the repo.
35+
$PYTHON -m pip install "$REPO[tests]"
3736

3837
su - user -c "\
3938
$PYTHON '$DIR'/iinit.py \

0 commit comments

Comments
 (0)