You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@pig.apache.org by "Johnny Zhang (JIRA)" <ji...@apache.org> on 2013/03/13 22:14:13 UTC

[jira] [Updated] (PIG-3077) TestMultiQueryLocal should not write in /tmp

     [ https://issues.apache.org/jira/browse/PIG-3077?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Johnny Zhang updated PIG-3077:
------------------------------

    Attachment: PIG-3077.patch.txt

this patch respect 'pig.temp.dir' first in case we want to put temp file in other location. Otherwise set location as System.getProperty("user.dir") + "/build/test/tmp/". 

It uses the FileLocalizer to get temp dir from PigContext, and then replace all /tmp in the test code.

I verify it and TestMultiQueryLocal passes for me.
                
> TestMultiQueryLocal should not write in /tmp
> --------------------------------------------
>
>                 Key: PIG-3077
>                 URL: https://issues.apache.org/jira/browse/PIG-3077
>             Project: Pig
>          Issue Type: Test
>            Reporter: Julien Le Dem
>         Attachments: PIG-3077.patch.txt
>
>
> temporary files from tests should be under build/test so that they are cleaned by "ant clean"
> Currently two test suites running on the same machine step on each other and create flaky tests results

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira