[SERVER-11462] smoke tests not handling windows-style data directory paths well Created: 29/Oct/13 Updated: 11/Jul/16 Resolved: 01/Nov/13 |
|
| Status: | Closed |
| Project: | Core Server |
| Component/s: | Testing Infrastructure |
| Affects Version/s: | 2.5.4 |
| Fix Version/s: | 2.5.4 |
| Type: | Bug | Priority: | Major - P3 |
| Reporter: | Adinoyi Omuya | Assignee: | Benety Goh |
| Resolution: | Done | Votes: | 0 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Environment: |
Windows |
||
| Issue Links: |
|
||||||||
| Operating System: | Windows | ||||||||
| Participants: | |||||||||
| Description |
|
2 issues: 1) MongoRunner.toRealPath() is returning an invalid path under Windows because it is assuming all absolute filesystem paths start with forward slash '/'. This is not true under Windows where an absolute path could start with backslash '\' or drive letter. 2) A number of tests in disk and tool test suites are doing comparisons on the full path of files returned from listFiles(). listFiles() unfortunately converts all native path separators to a generic forward slash which makes comparing with Windows-style paths inconvenient. Resolution: 1) MongoRunner.toRealPath() now recognizes Windows drive letters and backslashes at the beginning of any paths it is given. Tests are failing across all windows-64 buildvariants |
| Comments |
| Comment by auto [ 01/Nov/13 ] |
|
Author: {u'username': u'benety', u'name': u'Benety Goh', u'email': u'benety@mongodb.com'}Message: |
| Comment by Benety Goh [ 30/Oct/13 ] |
|
MongoRunner.dataDir and MongoRunner.dataPath now follow local OS convention. On our Windows MCI instances, this defaults to D:\data\db and D:\data\db/ respectively. |
| Comment by auto [ 30/Oct/13 ] |
|
Author: {u'username': u'benety', u'name': u'Benety Goh', u'email': u'benety@mongodb.com'}Message: |
| Comment by Ernie Hershey [ 29/Oct/13 ] |
|
I'm guessing this is due to https://github.com/mongodb/mongo/commit/2e10439eba106c1edd57522f6c549fccb245b1a0 |