Skip to content

Commit 2dc5e96

Browse files
author
Samuel Moors
committed
update
1 parent 358be77 commit 2dc5e96

1 file changed

Lines changed: 6 additions & 29 deletions

File tree

.github/workflows/end2end_bwrap.yml

Lines changed: 6 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -60,26 +60,6 @@ jobs:
6060
cat > /tmp/check_bwrap_install.sh <<'EOF'
6161
#!/usr/bin/env bash
6262
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-
8363
check_no_glob_matches() {
8464
local label="$1"
8565
local pattern="$2"
@@ -148,16 +128,16 @@ jobs:
148128
find /tmp/bwrap-installpath -maxdepth 5 -print || true
149129
echo
150130
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))
153133
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))
156136
157-
check_no_glob_matches "no host UnZip software payload" \
137+
check_no_glob_matches "no host UnZip software files" \
158138
"$HOME/.local/easybuild/software/UnZip/6.0/*" || failures=$((failures + 1))
159139
160-
check_no_glob_matches "no host bzip2 software payload" \
140+
check_no_glob_matches "no host bzip2 software files" \
161141
"$HOME/.local/easybuild/software/bzip2/1.0.8/*" || failures=$((failures + 1))
162142
163143
check_path_exists "bwrap bzip2 module file exists" \
@@ -197,9 +177,6 @@ jobs:
197177
bash -l <<EOF
198178
source /tmp/eb_env
199179
200-
# remove previously created install directories
201-
rm -r $HOME/.local/easybuild/{software,modules}/*
202-
203180
# make sure that --prefix also determines default value for bwrap-installpath
204181
eb --show-config --prefix /tmp | grep "bwrap-installpath [ ]* \(C\) = /tmp/bwrap"
205182

0 commit comments

Comments
 (0)