Skip to content

Commit

Permalink
bats: add UENV_MOUNT_LIST test for file:// prefix
Browse files Browse the repository at this point in the history
  • Loading branch information
simonpintarelli committed May 29, 2024
1 parent 334383c commit a300ef4
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions ci/tests/test.bats
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,13 @@ EOF
run_srun sh -c 'findmnt /user-environment && findmnt /user-profilers && findmnt /user-tools'
}

@test "uenv_mount_list_environment_backward_compat" {
# older versions of squashfs-mount used `file://` prefix for <abs-path> in UENV_MOUNT_LIST
# check that if images have been mounted `uenv --uenv=...`, the slurm plugin recogines UENV_MOUNT_LIST and mounts the same images
export UENV_MOUNT_LIST="file://${SQFSDIR}/binaries.sqfs,${SQFSDIR}/profilers.sqfs:/user-profilers,file://${SQFSDIR}/tools.sqfs:/user-tools"
run_srun sh -c 'findmnt /user-environment && findmnt /user-profilers && findmnt /user-tools'
}

@test "sbatch_override_in_srun" {
# check that images mounted via sbatch --uenv are overriden when `--uenv` flag is given to srun
run_sbatch <<EOF
Expand Down

0 comments on commit a300ef4

Please sign in to comment.