mirror of
https://github.com/s3fs-fuse/s3fs-fuse.git
synced 2026-04-25 05:16:00 +03:00
[PR #2683] [MERGED] Fixed the random string generation in test script for macos #2707
Labels
No labels
bug
bug
dataloss
duplicate
enhancement
feature request
help wanted
invalid
need info
performance
pull-request
question
question
testing
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/s3fs-fuse#2707
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?
📋 Pull Request Information
Original PR: https://github.com/s3fs-fuse/s3fs-fuse/pull/2683
Author: @ggtakec
Created: 6/7/2025
Status: ✅ Merged
Merged: 6/8/2025
Merged by: @gaul
Base:
master← Head:fix/macos_base64📝 Commits (1)
a46fe8dFixed the random string generation in test script for macos📊 Changes
1 file changed (+1 additions, -8 deletions)
View changed files
📝
test/test-utils.sh(+1 -8)📄 Description
Relevant Issue (if applicable)
n/a
Details
In the
make_random_stringfunction in the test script, thegbase64command and the--break=0option are used for macos, but an error occurs if not use--wrap=0instead of this option.(It is unclear when this has been the case.)So I modified it to use
--wrap=0for macos.(Note:
base64can also be used in the macos runner of Github Actions, but this modification was not made.)I also modified the script a little so that the reading from
/dev/randomand the passing of data tobase64(gbase64) do not result in unnecessary data.Before changing the
make_random_stringfunction, the file name suffix was empty, which caused thetest_update_metadata_external_small_objectandtest_update_metadata_external_large_objecttests to fail.(but this is not the only reason for the failure.)
I made this modification because the macos tests often failed.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.