Skip to contentSkip to conversation

generic/076 cleanup

DISCUSSION Omer Caspi 2 participants 2 messages Aug 4, 2014

lore
Share & tools
lore

Omer Caspi

author
#0 lore raw

While running some tests from the xfstests suite (quick group), I noticed that generic test 076 doesn't clean after itself. Specifically, a couple of directories (p1 and p2) remain on $TEST_DIR once the test is completed. To my understanding, a test should cleanup the files it had created, so I added a rm command to test's _cleanup function to fix it, which seems to be OK, but I thought I'll check: is there a reason for these directories to remain there after the test completion?

Omer

#1 lore raw
Quoted 10 lines · Omer Caspi

While running some tests from the xfstests suite (quick group), I noticed that generic test 076 doesn't clean after itself. Specifically, a couple of directories (p1 and p2) remain on $TEST_DIR once the test is completed.

To my understanding, a test should cleanup the files it had created, so I added a rm command to test's _cleanup function to fix it, which seems to be OK, but I thought I'll check: is there a reason for these directories to remain there after the test completion?

Omer

the test device is supposed to age, so leaving things lying around there after the test has run is expected, and fine.

_cleanup is more about removing tmpfiles, killing any spawned threads, etc - not about cleaning up the test device.

-Eric