Skip to content

Commit 2bf80af

Browse files
committed
run all tests locally, plus minor tweaks
1 parent 3cc7a61 commit 2bf80af

1 file changed

Lines changed: 17 additions & 2 deletions

File tree

irods/test/scripts/run_suite_locally.sh

Lines changed: 17 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,18 @@ set -e
44
SCRIPT_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+
719
run_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
}

0 commit comments

Comments
 (0)