FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

[3.7] bpo-35772: Fix test_tarfile on ppc64 (GH-11606) by miss-islington · Pull Request #11630 · python/cpython · GitHub

Repository navigation

[3.7] bpo-35772: Fix test_tarfile on ppc64 (GH-11606) - #11630

Merged
miss-islington merged 1 commit into
python:3.7from
miss-islington:backport-b238545-3.7
Jan 21, 2019
Merged

miss-islington merged 1 commit into
python:3.7from
miss-islington:backport-b238545-3.7

Conversation

miss-islington commented Jan 21, 2019 •
edited by bedevere-bot
Loading

Copy link
Copy Markdown
Contributor

Fix sparse file tests of test_tarfile on ppc64le with the tmpfs
filesystem.

Fix the function testing if the filesystem supports sparse files:
create a file which contains data and "holes", instead of creating a
file which contains no data.

tmpfs effective block size is a page size (tmpfs lives in the page
cache). RHEL uses 64 KiB pages on aarch64, ppc64 and ppc64le, only
s390x and x86_64 use 4 KiB pages, whereas the test punch holes of
4 KiB.

test.pythoninfo: Add resource.getpagesize().
(cherry picked from commit b238545)

Co-authored-by: Victor Stinner vstinner@redhat.com

https://bugs.python.org/issue35772

Fix sparse file tests of test_tarfile on ppc64le with the tmpfs
filesystem.

Fix the function testing if the filesystem supports sparse files:
create a file which contains data and "holes", instead of creating a
file which contains no data.

tmpfs effective block size is a page size (tmpfs lives in the page
cache). RHEL uses 64 KiB pages on aarch64, ppc64 and ppc64le, only
s390x and x86_64 use 4 KiB pages, whereas the test punch holes of
4 KiB.

test.pythoninfo: Add resource.getpagesize().
(cherry picked from commit b238545)

Co-authored-by: Victor Stinner <vstinner@redhat.com>

vstinner left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low Quality

LGTM, good bot.

Copy link
Copy Markdown
Contributor Author

@vstinner: Status check is done, and it's a success ✅ .

miss-islington merged commit d1dd6be into python:3.7 Jan 21, 2019
miss-islington deleted the backport-b238545-3.7 branch January 21, 2019 09:44

Copy link
Copy Markdown
Contributor Author

@vstinner: Status check is done, and it's a success ✅ .

This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

tests Tests in the Lib/test dir

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants


Back | FazBrowse Home | New Git URL