Skip to content

Commit 4e1dcfd

Browse files
feat: Add diracx repo choice in the integration test
1 parent 2066814 commit 4e1dcfd

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

integration_tests.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,8 @@
3535
"DIRAC_USE_JSON_ENCODE": None,
3636
"INSTALLATION_BRANCH": "",
3737
"DEBUG": "Yes",
38+
"DIRACX_REPO": "",
39+
"DIRACX_BRANCH": "",
3840
}
3941
DIRACX_OPTIONS = ()
4042
DEFAULT_MODULES = {"DIRAC": Path(__file__).parent.absolute()}

tests/Jenkins/utilities.sh

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -311,9 +311,9 @@ function installDIRACX() {
311311
for wheel_name in "$@"; do
312312
if [[ -n "${DIRACX_CUSTOM_SOURCE_PREFIXES:-}" ]]; then
313313
wheels=( $(find "${DIRACX_CUSTOM_SOURCE_PREFIXES}" -name "diracx_${wheel_name}-*.whl") )
314-
if [[ ! ${#wheels[@]} -eq 1 ]]; then
315-
echo "ERROR: Multiple or no wheels found for ${wheel_name} in ${DIRACX_CUSTOM_SOURCE_PREFIXES}"
316-
exit 1
314+
if [[ ${#wheels[@]} -ne 1 ]]; then
315+
echo "ERROR: Multiple or no wheels found for ${wheel_name}"
316+
exit 1
317317
fi
318318
pip install "${wheels[0]}"
319319
else

0 commit comments

Comments
 (0)