Skip to content

Commit d5d1d01

Browse files
committed
update
1 parent 805d425 commit d5d1d01

File tree

1 file changed

+11
-13
lines changed

1 file changed

+11
-13
lines changed

config.sh

Lines changed: 11 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -297,17 +297,15 @@ function run_tests {
297297
cp ../netcdf4-python/test/* .
298298
python run_all.py
299299
# add test for netcdf4-python issue #1246 (opendap with ssl)
300-
#if [ -n "$IS_MACOS" ]; then # for now only run on MacOS since linux fails
301-
URL='https://icdc.cen.uni-hamburg.de/thredds/dodsC/ftpthredds/hamtide/m2.hamtide11a.nc'
302-
export CURLOPT_VERBOSE=1
303-
# these don't work
304-
#echo "HTTP.SSL.CAINFO=/etc/ssl/certs/ca-certificates.crt" > .ncrc
305-
#cat .ncrc
306-
#/export CURL_CA_BUNDLE=/etc/ssl/certs/ca-certificates.crt
307-
echo "cacert=/etc/ssl/certs/ca-certificates.crt" > $HOME/.curlrc
308-
# this works
309-
#mkdir -p /etc/pki/tls/certs
310-
#cp /etc/ssl/certs/ca-certificates.crt /etc/pki/tls/certs/ca-bundle.crt
311-
python -c "from netCDF4 import Dataset; nc=Dataset(\"${URL}\"); print(nc)"
312-
#fi
300+
URL='https://icdc.cen.uni-hamburg.de/thredds/dodsC/ftpthredds/hamtide/m2.hamtide11a.nc'
301+
export CURLOPT_VERBOSE=1
302+
# these don't work
303+
#echo "HTTP.SSL.CAINFO=/etc/ssl/certs/ca-certificates.crt" > .ncrc
304+
#cat .ncrc
305+
#/export CURL_CA_BUNDLE=/etc/ssl/certs/ca-certificates.crt
306+
#echo "cacert=/etc/ssl/certs/ca-certificates.crt" > $HOME/.curlrc
307+
# this works
308+
mkdir -p /etc/pki/tls/certs
309+
cp /etc/ssl/certs/ca-certificates.crt /etc/pki/tls/certs/ca-bundle.crt
310+
python -c "from netCDF4 import Dataset; nc=Dataset(\"${URL}\"); print(nc)"
313311
}

0 commit comments

Comments
 (0)