Skip to content

Commit 7766270

Browse files
committed
whitespace, comments
1 parent 25e825c commit 7766270

8 files changed

Lines changed: 13 additions & 16 deletions

File tree

docker-testing/irods_catalog_provider_5/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ RUN apt-get update && \
5050
&& \
5151
apt-get clean && \
5252
rm -rf /var/lib/apt/lists/* /tmp/*
53-
53+
5454
COPY setup-${irods_version}.input /
5555
RUN mv /setup-${irods_version}.input /irods_setup.input
5656

docker-testing/irods_catalog_provider_5/entrypoint.sh

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -46,8 +46,5 @@ chmod 0777 /irods_shared
4646
echo "Starting server"
4747

4848
cd /usr/sbin
49-
#irods 4
50-
#su irods -c 'bash -c "./irodsServer -u"'
51-
#irods 5
5249
su irods -c 'bash -c "./irodsServer -p /tmp/irods.pid"'
5350

irods/test/harness/create_docker_images.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ export IRODS_PACKAGE_VERSION=$1
44
export PYTHON_VERSION=$2
55

66
[ -z "$1" -o -z "$2" ] && {
7-
echo >&2 "usage $0 irods-vsn py-vsn"; exit 2;
7+
echo >&2 "usage $0 irods-vsn py-vsn"; exit 2;
88
}
99
shift 2
1010

irods/test/harness/docker_container_driver.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ fi
8686
reporoot=$(./print_repo_root_location)
8787
ORIGINAL_SCRIPT_RELATIVE_TO_ROOT=$(realpath --relative-to $reporoot "$original_testscript_abspath")
8888

89-
echo "ORIGINAL_SCRIPT_RELATIVE_TO_ROOT=[$ORIGINAL_SCRIPT_RELATIVE_TO_ROOT]"
89+
echo "ORIGINAL_SCRIPT_RELATIVE_TO_ROOT=[$ORIGINAL_SCRIPT_RELATIVE_TO_ROOT]"
9090
INNER_MOUNT=/prc
9191

9292
: ${DOCKER:=docker}
@@ -99,7 +99,7 @@ CONTAINER=$($DOCKER run -d -v $reporoot:$INNER_MOUNT:ro $REMOVE_OPTION $image)
9999
TIME0=$(date +%s)
100100
while :; do
101101
[ `date +%s` -gt $((TIME0 + 30)) ] && { echo >&2 "Waited too long for DB and iRODS to start"; exit 124; }
102-
sleep 1
102+
sleep 1
103103
$DOCKER exec $CONTAINER grep '(0)' /tmp/irods_status 2>/dev/null >/dev/null
104104
[ $? -ne 0 ] && { echo -n . >&2; continue; }
105105
break

irods/test/harness/install.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ run_phase() {
9393
sudo apt-get update
9494
sudo apt-get install -y software-properties-common postgresql
9595
sudo apt-get update && \
96-
sudo apt-get install -y libfuse2 unixodbc rsyslog ################### less python-pip
96+
sudo apt-get install -y libfuse2 unixodbc rsyslog
9797
fi
9898

9999

irods/test/harness/start_postgresql_and_irods.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ if ! id -u irods >/dev/null 2>&1 ; then
1515
fi
1616
IRODS_VSN_MAJOR=$(sed 's!\..*!!'<<<$IRODS_VSN)
1717
unset IRODS_VSN
18-
if [ $IRODS_VSN_MAJOR -lt 5 ]; then
18+
if [ $IRODS_VSN_MAJOR -lt 5 ]; then
1919
su - irods -c '~/irodsctl restart'
2020
else
2121
/manage_irods5_procs start

irods/test/login_auth_test.sh

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@
33
. $(dirname $0)/scripts/update_json_for_test
44

55
IRODS_SERVER_CONFIG=/etc/irods/server_config.json
6-
IRODS_SERVICE_ACCOUNT_ENV_FILE=~irods/.irods/irods_environment.json
7-
LOCAL_ACCOUNT_ENV_FILE=~/.irods/irods_environment.json
6+
IRODS_SERVICE_ACCOUNT_ENV_FILE=~irods/.irods/irods_environment.json
7+
LOCAL_ACCOUNT_ENV_FILE=~/.irods/irods_environment.json
88

99
cannot_iinit=''
1010
tries=8
@@ -23,7 +23,7 @@ add_irods_to_system_pam_configuration
2323
# set up /etc/irods/ssl directory and files
2424
set_up_ssl sudo
2525

26-
sudo useradd -ms/bin/bash alissa
26+
sudo useradd -ms/bin/bash alissa
2727
sudo chpasswd <<<"alissa:test123"
2828

2929
update_json_file $IRODS_SERVICE_ACCOUNT_ENV_FILE \
@@ -49,7 +49,7 @@ update_json_file $LOCAL_ACCOUNT_ENV_FILE \
4949
if [ $server_hup = y ]; then
5050
# wait for server to be ready after configuration reload
5151
while true; do
52-
sleep 2
52+
sleep 2
5353
if ils >/dev/null 2>&1; then
5454
break
5555
else
@@ -63,7 +63,7 @@ fi
6363
original_script=/prc/$ORIGINAL_SCRIPT_RELATIVE_TO_ROOT
6464

6565
# Run tests.
66-
if [ -x "$original_script" ]; then
66+
if [ -x "$original_script" ]; then
6767
command "$original_script" $*
6868
elif [[ $original_script =~ \.py$ ]]; then
6969
python "$original_script" $*

irods/test/runner.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ def abs_path(initial_dir, levels_up = 0):
6767
args = parser.parse_args()
6868

6969
if args.tests_file:
70-
if args.tests:
70+
if args.tests:
7171
print ('Cannot specify both --tests and --tests_file', file = sys.stderr)
7272
exit(2)
7373
args.tests = filter(None,open(args.tests_file).read().split("\n"))
@@ -85,7 +85,7 @@ def abs_path(initial_dir, levels_up = 0):
8585

8686
if args.skipped_tests_output_filename:
8787
with open(args.skipped_tests_output_filename,'w') as f:
88-
do_output = (lambda reason: (args.env_var in reason) if args.env_var
88+
do_output = (lambda reason: (args.env_var in reason) if args.env_var
8989
else True)
9090
for testinfo, reason in result.skipped:
9191
if do_output(reason):

0 commit comments

Comments
 (0)