[NAS-2562] ArchiveTests require too much free space on disk Created: 29/Sep/16 Updated: 31/Aug/17 Resolved: 31/Aug/17 |
|
Status: | Resolved |
Project: | NetarchiveSuite |
Component/s: | Archive, Test |
Affects Version/s: | None |
Fix Version/s: | 5.2.2 |
Type: | Bug | Priority: | Minor |
Reporter: | Søren Vejrup Carlsen (Inactive) | Assignee: | Søren Vejrup Carlsen (Inactive) |
Resolution: | Fixed | ||
Labels: | None | ||
Remaining Estimate: | Not Specified | ||
Time Spent: | Not Specified | ||
Original Estimate: | Not Specified |
Description |
Some archivetests demand too much space left. Tests in error: BitarchiveTesterAdmin.testUploadAdminAdded:91 » IOFailure No space left in dir... BitarchiveTesterLog.testLogUpload:91 » IOFailure No space left in dirs: [/home... ArcRepositoryTesterLog.testLogStore:87 » IOFailure Upload of 'logging1.ARC' ti... Tests run: 307, Failures: 0, Errors: 3, Skipped: 64 Tests in error: BitarchiveTesterAdmin.testUploadAdminAdded:91 » IOFailure No space left in dir... BitarchiveTesterLog.testLogUpload:91 » IOFailure No space left in dirs: [/home... ArcRepositoryTesterLog.testLogStore:87 » IOFailure Upload of 'logging1.ARC' ti... Tests run: 307, Failures: 0, Errors: 3, Skipped: 64 One of test-class in question is: archive/archive-test/src/test/java/dk/netarkivet/archive/bitarchive/BitarchiveTesterAdmin.java |
Comments |
Comment by Søren Vejrup Carlsen (Inactive) [ 31/Aug/17 ] |
This solved in September 2016 by adding checks like the one below to three tests: if (!admin.hasEnoughSpace()) { System.err.println("Skipping test. Not enough space on disk to perform test"); return; } thus exiting the tests prematurely, if there was insufficient storage for the test at hand |