Keystone doc build fails when built from sdist tarballs

Bug #1296862 reported by Dirk Mueller
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
OpenStack Identity (keystone)
Fix Released
Medium
Dirk Mueller

Bug Description

keystone/tests/tmp is not included in the sdist tarballs, hence running sphinx fails with:

[ 27s] File "/home/abuild/rpmbuild/BUILD/keystone-2014.1.dev141.g0fb0dfd/keystone/tests/core.py", line 92, in <module>
[ 27s] os.mkdir(TMPDIR)
[ 27s] OSError: [Errno 2] No such file or directory: '/home/abuild/rpmbuild/BUILD/keystone-2014.1.dev141.g0fb0dfd/keystone/tests/tmp/29703'

thats because the parent dir (tests/tmp) is missing.

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to keystone (master)

Fix proposed to branch: master
Review: https://review.openstack.org/82565

Changed in keystone:
assignee: nobody → Dirk Mueller (dmllr)
status: New → In Progress
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to keystone (master)

Reviewed: https://review.openstack.org/82565
Committed: https://git.openstack.org/cgit/openstack/keystone/commit/?id=75d03a575b1f116d78fe256eaa2d1801b115a875
Submitter: Jenkins
Branch: master

commit 75d03a575b1f116d78fe256eaa2d1801b115a875
Author: Dirk Mueller <email address hidden>
Date: Mon Mar 24 18:46:36 2014 +0100

    Create TMPDIR for tests recursively

    keystone/tests/tmp is missing in the sdist tarballs, so
    we need to not only create keystone/tests/tmp/<pid> but also the
    parent directory. Use os.makedirs for that.

    Change-Id: I2f97bee517297b9fa239183c23ad1dfa52505bc9
    Closes-Bug: #1296862

Changed in keystone:
status: In Progress → Fix Committed
Thierry Carrez (ttx)
Changed in keystone:
milestone: none → icehouse-rc1
status: Fix Committed → Fix Released
Dolph Mathews (dolph)
Changed in keystone:
importance: Undecided → Medium
Thierry Carrez (ttx)
Changed in keystone:
milestone: icehouse-rc1 → 2014.1
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.