@@ -9,31 +9,30 @@ cd "$DIR"
99
1010REPO=" $( ./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
3837su - user -c " \
3938$PYTHON '$DIR '/iinit.py \
0 commit comments