|
60 | 60 | cat > /tmp/check_bwrap_install.sh <<'EOF' |
61 | 61 | #!/usr/bin/env bash |
62 | 62 |
|
63 | | - check_no_dir() { |
64 | | - local label="$1" |
65 | | - local path="$2" |
66 | | -
|
67 | | - echo ">>> CHECK: $label" |
68 | | - echo " path: $path" |
69 | | -
|
70 | | - if [[ -d "$path" ]]; then |
71 | | - echo "FAIL: directory exists" |
72 | | - echo "Directory details:" |
73 | | - ls -ld "$path" || true |
74 | | - echo "Contents:" |
75 | | - find "$path" -maxdepth 4 -print || true |
76 | | - return 1 |
77 | | - fi |
78 | | -
|
79 | | - echo "PASS: directory does not exist" |
80 | | - echo |
81 | | - } |
82 | | -
|
83 | 63 | check_no_glob_matches() { |
84 | 64 | local label="$1" |
85 | 65 | local pattern="$2" |
@@ -148,16 +128,16 @@ jobs: |
148 | 128 | find /tmp/bwrap-installpath -maxdepth 5 -print || true |
149 | 129 | echo |
150 | 130 |
|
151 | | - check_no_dir "no host UnZip module dir" \ |
152 | | - "$HOME/.local/easybuild/modules/all/UnZip" || failures=$((failures + 1)) |
| 131 | + check_no_glob_matches "no host UnZip modules" \ |
| 132 | + "$HOME/.local/easybuild/modules/all/UnZip/*" || failures=$((failures + 1)) |
153 | 133 |
|
154 | | - check_no_dir "no host bzip2 module dir" \ |
155 | | - "$HOME/.local/easybuild/modules/all/bzip2" || failures=$((failures + 1)) |
| 134 | + check_no_glob_matches "no host bzip2 modules" \ |
| 135 | + "$HOME/.local/easybuild/modules/all/bzip2/*" || failures=$((failures + 1)) |
156 | 136 |
|
157 | | - check_no_glob_matches "no host UnZip software payload" \ |
| 137 | + check_no_glob_matches "no host UnZip software files" \ |
158 | 138 | "$HOME/.local/easybuild/software/UnZip/6.0/*" || failures=$((failures + 1)) |
159 | 139 |
|
160 | | - check_no_glob_matches "no host bzip2 software payload" \ |
| 140 | + check_no_glob_matches "no host bzip2 software files" \ |
161 | 141 | "$HOME/.local/easybuild/software/bzip2/1.0.8/*" || failures=$((failures + 1)) |
162 | 142 |
|
163 | 143 | check_path_exists "bwrap bzip2 module file exists" \ |
@@ -197,9 +177,6 @@ jobs: |
197 | 177 | bash -l <<EOF |
198 | 178 | source /tmp/eb_env |
199 | 179 |
|
200 | | - # remove previously created install directories |
201 | | - rm -r $HOME/.local/easybuild/{software,modules}/* |
202 | | -
|
203 | 180 | # make sure that --prefix also determines default value for bwrap-installpath |
204 | 181 | eb --show-config --prefix /tmp | grep "bwrap-installpath [ ]* \(C\) = /tmp/bwrap" |
205 | 182 |
|
|
0 commit comments