Closed Bug 797672 Opened 12 years ago Closed 11 years ago

DeviceManagerSUT: listFiles('/') doesn't work

Categories

(Testing :: Mozbase, defect)

defect
Not set
normal

Tracking

(Not tracked)

RESOLVED DUPLICATE of bug 868505

People

(Reporter: mcote, Unassigned)

Details

Attachments

(1 file)

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.
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.
Assignee: nobody → mcote
Status: NEW → ASSIGNED
Attachment #667793 - Flags: review?(wlachance)
Comment on attachment 667793 [details] [diff] [review] Normalize path in DeviceManagerSUT.listFiles() instead of just stripping slashes LGTM
Attachment #667793 - Flags: review?(wlachance) → review+
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.
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.

Attachment

General

Created:
Updated:
Size: