Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chmod html_dir to ensure writability #521

Merged
merged 2 commits into from Jun 21, 2017
Merged

Conversation

Warbo
Copy link
Contributor

@Warbo Warbo commented Jun 20, 2017

asv's HTML output is made by copying a "template" directory, which lives
alongside asv's code (e.g. in /usr or the like), to the destination, which is
then modified to contain the benchmark data.

If the template is read-only, e.g. due to the filesystem it's stored on, then we
can copy it across, but don't have permission to modify it (e.g. getting OSError
13 "permission denied" when trying to make the graph/ subdir).

This change runs chmod to grant write permission to the owner (the current user)
immediately after the copy, so we avoid such "permission denied" errors.

asv's HTML output is made by copying a "template" directory, which lives
alongside asv's code (e.g. in /usr or the like), to the destination, which is
then modified to contain the benchmark data.

If the template is read-only, e.g. due to the filesystem it's stored on, then we
can copy it across, but don't have permission to modify it (e.g. getting OSError
13 "permission denied" when trying to make the graph/ subdir).

This change runs chmod to grant write permission to the owner (the current user)
immediately after the copy, so we avoid such "permission denied" errors.
@coveralls
Copy link

Coverage Status

Changes Unknown when pulling e22664e on Warbo:master into ** on spacetelescope:master**.

@pv
Copy link
Collaborator

pv commented Jun 20, 2017 via email

@coveralls
Copy link

Coverage Status

Changes Unknown when pulling ed33725 on Warbo:master into ** on spacetelescope:master**.

@pv pv merged commit 13559be into airspeed-velocity:master Jun 21, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants