File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 44SCRIPT_DIR=$( dirname " $0 " )
55. " $SCRIPT_DIR " /test_support_functions
66
7+ report_environment_variables () {
8+ echo " PRC under test with these environment variables active:"
9+ python -c "
10+ import os, sys
11+ for name in ['IRODS_PACKAGE_VERSION','PYTHON_VERSION']:
12+ value = os.environ.get(name)
13+ print(f' {name}=[{value}]')
14+ print(f'{sys.executable = }')
15+ print(f'{sys.version = }')
16+ "
17+ }
18+
719run_tests () {
820 setup_pyN
921 su - testuser -c "
@@ -17,8 +29,9 @@ run_tests() {
1729 user rods \
1830 zone tempZone \
1931 password rods
20- echo ; echo 'PRC under test: === iRODS [$IRODS_PACKAGE_VERSION ] ; Python [$PYTHON_VERSION ]'
21- python runner.py --output_tests_skipped /tmp/skipped.txt -e PYTHON_RULE_ENGINE_INSTALLED --tests irods.test.rule_test
32+ $( declare -f report_environment_variables)
33+ report_environment_variables
34+ python runner.py --output_tests_skipped /tmp/skipped.txt -e PYTHON_RULE_ENGINE_INSTALLED
2235 "
2336
2437 # Install PREP (Python Rule Engine Plugin).
@@ -35,6 +48,8 @@ run_tests() {
3548 set -e
3649 source /pyN/bin/activate
3750 cd /prc.rw/irods/test
51+ $( declare -f report_environment_variables)
52+ report_environment_variables
3853 env PYTHON_RULE_ENGINE_INSTALLED=yes python runner.py --tests_file /tmp/skipped.txt
3954 "
4055}
You can’t perform that action at this time.
0 commit comments