Skip to content
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
18 changes: 18 additions & 0 deletions e2e/assert.sh
Original file line number Diff line number Diff line change
Expand Up @@ -250,6 +250,15 @@ assert_contains() {
fi
}

assert_contains_text() {
local actual="$1"
if [[ $actual == *"$2"* ]]; then
ok "[text] '$2' is in output"
else
fail "[text] expected '$2' to be in output"
fi
}
Comment thread
greptile-apps[bot] marked this conversation as resolved.

assert_not_contains() {
local actual
actual="$(quiet_assert_succeed "$1")"
Expand All @@ -260,6 +269,15 @@ assert_not_contains() {
fi
}

assert_not_contains_text() {
local actual="$1"
if [[ $actual != *"$2"* ]]; then
ok "[text] '$2' is not in output"
else
fail "[text] expected '$2' not to be in output"
fi
}

assert_matches() {
local actual
actual="$(quiet_assert_succeed "$1")"
Expand Down
4 changes: 2 additions & 2 deletions e2e/core/test_python_github_attestations
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@ output=$(mise install python@3.13.5 2>&1) || true
echo "$output"

# Verify attestation verification was attempted and succeeded
assert_contains "echo \"$output\"" "verify GitHub artifact attestations"
assert_contains "echo \"$output\"" "✓ GitHub artifact attestations verified"
assert_contains_text "$output" "verify GitHub artifact attestations"
assert_contains_text "$output" "✓ GitHub artifact attestations verified"

# Verify the installed Python works
assert "mise x python@3.13.5 -- python --version" "Python 3.13.5"
Loading