Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 324657 - [testing] RSE Unittests should create "rsetest*" in /tmp instead of $HOME
Summary: [testing] RSE Unittests should create "rsetest*" in /tmp instead of $HOME
Status: NEW
Alias: None
Product: Target Management
Classification: Tools
Component: RSE (show other bugs)
Version: 3.2   Edit
Hardware: PC Windows XP
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: dsdp.tm.rse-inbox CLA
QA Contact: Martin Oberhuber CLA
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-09-07 10:00 EDT by Martin Oberhuber CLA
Modified: 2010-09-07 11:40 EDT (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Martin Oberhuber CLA 2010-09-07 10:00:40 EDT
As per bug 324559 comment 2, RSE Unittests seem to leave some non-deletable files and folders behind under $HOME/rseTest* for user "hudsonbuild" .

Unittests should be cleaned up to

   (1) create test data under /tmp instead where possible, such that others 
       can clean those up;
   (2) cleanup itself in Unittest tearDown() wherever possible.
Comment 1 Martin Oberhuber CLA 2010-09-07 10:11:59 EDT
Left-overs look like this, the newest one dated May-25:


dr--r--r-- 2 hudsonbuild callisto-dev       80 2010-05-25 16:38 rseTest1274882581144
moberhuber@build:/opt/users/hudsonbuild> ls -la rseTest1274882581144/
ls: cannot access rseTest1274882581144/noPerm.txt: Permission denied
total 0
?????????? ? ? ? ?                ? noPerm.txt


It's possible that this issue has actually been fixed already with bug 314526 .
Comment 2 Martin Oberhuber CLA 2010-09-07 11:40:43 EDT
I verified that TM 3.2 doesn't leave any left-overs in $HOME any more, so item (2) from comment 0 seems to be done.

Should still investigate moving temporaries below /tmp rather than $HOME, although that might be problematic when accessing remote systems. I'm decreasing priority for now though since the original issue is addressed, and adjusting the Summary.

Bug 222544 is still open for unittest left-overs.