Closed
Bug 797672
Opened 12 years ago
Closed 11 years ago
DeviceManagerSUT: listFiles('/') doesn't work
Categories
(Testing :: Mozbase, defect)
Testing
Mozbase
Tracking
(Not tracked)
RESOLVED
DUPLICATE
of bug 868505
People
(Reporter: mcote, Unassigned)
Details
Attachments
(1 file)
1.07 KB,
patch
|
wlach
:
review+
|
Details | Diff | Splinter Review |
DeviceManagerSUT.listFiles() does an rstrip('/') on the given path in order to remove any trailing slashes, but this turns '/' into '', which then fails the dirExists() call.
Assignee | ||
Comment 1•12 years ago
|
||
We've agreed that paths accepted by SUT commands will be in POSIX format regardless of underlying OS, so we can just call posixpath.normpath() here, which removes trailing slashes on all but the root dir.
Comment 2•12 years ago
|
||
Comment on attachment 667793 [details] [diff] [review]
Normalize path in DeviceManagerSUT.listFiles() instead of just stripping slashes
LGTM
Attachment #667793 -
Flags: review?(wlachance) → review+
Assignee | ||
Comment 3•12 years ago
|
||
So I'm 99.9% sure this won't break anything, but I'd like to run it through try first to be sure. I'll wait until the oranges are a bit more under control first, though.
Comment 4•12 years ago
|
||
I think we should close this because of https://bugzilla.mozilla.org/show_bug.cgi?id=868505.
Assignee | ||
Updated•11 years ago
|
Status: ASSIGNED → RESOLVED
Closed: 11 years ago
Resolution: --- → DUPLICATE
You need to log in
before you can comment on or make changes to this bug.
Description
•