[ 
https://issues.apache.org/jira/browse/HDDS-130?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16505307#comment-16505307
 ] 

Bharat Viswanadham commented on HDDS-130:
-----------------------------------------

[~Sandeep Nemuri]

Thanks for working on this.

You can use the 
[https://junit.org/junit4/javadoc/4.12/org/junit/rules/TemporaryFolder.html]  
it will ensure you can run many times and the clean etc. And also it will solve 
if multiple tests use the same will be taken care and if we fail it will be 
clean.

 

 

> TestGenerateOzoneRequiredConfigurations should use 
> GenericTestUtils#getTempPath to set output directory
> -------------------------------------------------------------------------------------------------------
>
>                 Key: HDDS-130
>                 URL: https://issues.apache.org/jira/browse/HDDS-130
>             Project: Hadoop Distributed Data Store
>          Issue Type: Bug
>          Components: Tools
>            Reporter: Nanda kumar
>            Assignee: Sandeep Nemuri
>            Priority: Minor
>              Labels: newbie
>             Fix For: 0.2.1
>
>         Attachments: HDDS-130.001.patch
>
>
> {{TestGenerateOzoneRequiredConfigurations}} uses current directory (.) as its 
> output location which generates {{ozone-site.xml}} file in the directory from 
> where the test-cases is executed. Insead we should use 
> {{GenericTestUtils#getTempPath}} to get the output directory for test-cases.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

---------------------------------------------------------------------
To unsubscribe, e-mail: hdfs-issues-unsubscr...@hadoop.apache.org
For additional commands, e-mail: hdfs-issues-h...@hadoop.apache.org

Reply via email to