drop the python3 one-liner from the surface-tool-error hook test #627
Labels
No labels
breaking
bug
documentation
enhancement
epic
good first issue
help wanted
refactoring
resolution/duplicate
resolution/invalid
resolution/wontfix
security
severity/critical
severity/high
severity/low
severity/medium
status/abandoned
status/blocked
status/needs-decision
status/needs-info
status/needs-verification
testing
upstream
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Blocks
#630 Epic: no Python in the repo
sixfold-space/madtea
Reference
sixfold-space/madtea#627
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
What
hooks/tests/surface-tool-error.test.sh:158builds a long error string withpython3 -c "print('x' * 600)", and falls back toprintf '%0.s x' {1..600}. The fallback is not the same string: it gives 600 copies of " x", 1200 characters. The test only needs text longer than 500 characters, so it passes either way, but the Python line is not needed.Fix
Build the string in bash alone:
long_text=$(printf 'x%.0s' {1..600}), which gives exactly 600 "x" characters.Acceptance
python3call and passes.