8000 fix scope handling by reidpr · Pull Request #1815 · hpc/charliecloud · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
This repository was archived by the owner on May 27, 2025. It is now read-only.

fix scope handling #1815

Merged
merged 1 commit into from
Jan 22, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 7 additions & 3 deletions bin/ch-test
Original file line number Diff line number Diff line change
Expand Up @@ -363,6 +363,7 @@ scope_to_digit () {
;;
*)
fatal "scope '$scope' invalid"
;;
esac
}

Expand Down Expand Up @@ -516,9 +517,12 @@ test_make_check_image () {
builder_exclude=$(cat "$img" | grep -F 'ch-test-builder-exclude: ' \
| sed 's/.*: //' | awk '{print $1}')

img_scope_int=$(scope_to_digit "$(cat "$img" | grep -F 'ch-test-scope' \
| sed 's/.*: //' \
| awk '{print $1}')")
img_scope_str=$(cat "$img" | grep -F 'ch-test-scope' \
| sed 's/.*: //' \
| awk '{print $1}')
[[ -n $img_scope_str ]] || fatal "no scope: $img"
img_scope_int=$(scope_to_digit "$img_scope_str")
[[ -n $img_scope_int ]] || exit 1 # set -e not working, why?

sudo_required=$(cat "$img" | grep -F 'ch-test-need-sudo')

Expand Down
1 change: 1 addition & 0 deletions examples/seccomp/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# ch-test-scope: standard
# ch-test-builder-include: ch-image
FROM alpine:3.17
RUN apk add gcc musl-dev strace
Expand Down
1 change: 1 addition & 0 deletions examples/spack/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# ch-test-scope: full
FROM almalinux:8

# Note: Spack is a bit of an odd duck testing wise. Because it’s a package
Expand Down
0