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

test_subprocess fails on SuSE 10 #45753

Closed
dvadasz mannequin opened this issue Nov 9, 2007 · 4 comments
Closed

test_subprocess fails on SuSE 10 #45753

dvadasz mannequin opened this issue Nov 9, 2007 · 4 comments
Labels
tests Tests in the Lib/test dir

Comments

@dvadasz
Copy link
Mannequin

dvadasz mannequin commented Nov 9, 2007

BPO 1412
Nosy @tiran
Files
  • unnamed
  • Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.

    Show more details

    GitHub fields:

    assignee = None
    closed_at = <Date 2007-11-25.20:21:10.188>
    created_at = <Date 2007-11-09.13:30:50.439>
    labels = ['tests']
    title = 'test_subprocess fails on SuSE 10'
    updated_at = <Date 2007-11-25.20:21:10.186>
    user = 'https://bugs.python.org/dvadasz'

    bugs.python.org fields:

    activity = <Date 2007-11-25.20:21:10.186>
    actor = 'christian.heimes'
    assignee = 'none'
    closed = True
    closed_date = <Date 2007-11-25.20:21:10.188>
    closer = 'christian.heimes'
    components = ['Tests']
    creation = <Date 2007-11-09.13:30:50.439>
    creator = 'dvadasz'
    dependencies = []
    files = ['8738']
    hgrepos = []
    issue_num = 1412
    keywords = []
    message_count = 4.0
    messages = ['57301', '57360', '57395', '57833']
    nosy_count = 2.0
    nosy_names = ['christian.heimes', 'dvadasz']
    pr_nums = []
    priority = 'normal'
    resolution = 'works for me'
    stage = None
    status = 'closed'
    superseder = None
    type = None
    url = 'https://bugs.python.org/issue1412'
    versions = ['Python 2.5']

    @dvadasz
    Copy link
    Mannequin Author

    dvadasz mannequin commented Nov 9, 2007

    I compiled Python 2.5.1 on SuSE 10 and ran "make test", which reported
    test_subprocess.py to fail on lines 537 and 579 with "permission
    denied".

    After a short investigation it looks the problem is that in SuSE 10 the
    shell (bash) rejects to execute scripts residing in the /tmp directory
    even if the file permissions would allow that.

    An easy way of fixing this could be to place the shell script
    statically in the same directory as test_subprocess.py instead of
    creating it on-the-fly in /tmp.

    @dvadasz dvadasz mannequin added the tests Tests in the Lib/test dir label Nov 9, 2007
    @tiran
    Copy link
    Member

    tiran commented Nov 10, 2007

    Please try this:

    $ mkdir -p ~/tmp
    $ TMP=~/tmp make test

    @dvadasz
    Copy link
    Mannequin Author

    dvadasz mannequin commented Nov 12, 2007

    When I say:

    $ mkdir -p ~/tmp
    $ TMP=3D~/tmp python Lib/tests/test=5Fsubprocess.py

    the test is passed.

    However with

    $ TMP=3D~/tmp make test

    the test still fails and the ~/tmp directory is removed during the test
    run.

    Regards
    Denes Vadasz

    Christian Heimes <report@bugs.python.org>
    To
    dvadasz@amadeus.net
    cc

    bcc

    Subject
    [bpo-1412] test_subprocess fails on SuSE 10

    Christian Heimes <report@bugs.python.org>
    Please respond to : Tracker <report@bugs.python.org>
    10/11/2007 23:05

    Christian Heimes added the comment:

    Please try this:

    $ mkdir -p ~/tmp
    $ TMP=~/tmp make test

    nosy: +tiran


    Tracker <report@bugs.python.org>
    <http://bugs.python.org/issue1412\>


    IMPORTANT - CONFIDENTIALITY NOTICE - This e-mail is intended only for
    the use of the individual or entity shown above as addressees . It may
    contain information which is privileged, confidential or otherwise
    protected from disclosure under applicable laws . If the reader of this
    transmission is not the intended recipient, you are hereby notified that
    any dissemination, printing, distribution, copying, disclosure or the
    taking of any action in reliance on the contents of this information is
    strictly prohibited. If you have received this transmission in error,
    please immediately notify us by reply e-mail or using the address below
    and delete the message and any attachments from your system .

    Amadeus Data Processing GmbH
    Geschäftsführer: Eberhard Haag
    Sitz der Gesellschaft: Erding
    HR München 48 199
    Berghamer Strasse 6
    85435 Erding
    Germany

    @tiran
    Copy link
    Member

    tiran commented Nov 25, 2007

    I've fixed a bug in py3k and 2.6 where a test in test_shutil has removed
    an empty TMP directory. I regard the issue as a minor inconvenience. We
    can't work around every edge case.

    @tiran tiran closed this as completed Nov 25, 2007
    @ezio-melotti ezio-melotti transferred this issue from another repository Apr 10, 2022
    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

    No branches or pull requests

    1 participant