Closed
Bug 827999
Opened 13 years ago
Closed 13 years ago
[Negatus] Use sd card for test root if present
Categories
(Testing Graveyard :: SUTAgent, defect)
Testing Graveyard
SUTAgent
Tracking
(Not tracked)
RESOLVED
FIXED
People
(Reporter: mcote, Unassigned)
References
Details
Attachments
(1 file, 1 obsolete file)
|
15.06 KB,
patch
|
wlach
:
review+
|
Details | Diff | Splinter Review |
Right now Negatus is hard-coded to return /data/local as the testroot. It should instead check if an SD card is present and, if so, use a subdirectory of it, defaulting to /data/local/tmp if it isn't present.
| Assignee | ||
Updated•13 years ago
|
OS: Mac OS X → All
Hardware: x86 → All
| Assignee | ||
Updated•13 years ago
|
Assignee: nobody → mcote
Status: NEW → ASSIGNED
| Assignee | ||
Comment 1•13 years ago
|
||
Some C++ for ya! :D
This provides a command-line option for the testroot, which defaults to the SD card if detected, or /data/local/tmp if not. Errors are printed if the test root can't be created. I also added a heartbeat-port option so that we can run two instances in parallel for easier testing. Plus a few other minor cleanups.
Attachment #711689 -
Flags: review?(wlachance)
| Assignee | ||
Comment 2•13 years ago
|
||
Slightly better patch, which does a 'mkdir -p' equivalent when creating the testroot on start-up.
Attachment #711689 -
Attachment is obsolete: true
Attachment #711689 -
Flags: review?(wlachance)
Attachment #711699 -
Flags: review?(wlachance)
Comment 3•13 years ago
|
||
Comment on attachment 711699 [details] [diff] [review]
Configurable testroot defaulting to SD card if present
This looks pretty good to me. The strtok stuff in mkdirs and setDefaultTestRoot makes me cringe a bit, but I don't know of any better options offhand.
I would personally have seperated out the cleanups from the new feature into two patches (hint: you can use git format-patch HEAD^^ to generate two patches from a branch), but it's probably not that big a deal.
Attachment #711699 -
Flags: review?(wlachance) → review+
| Assignee | ||
Comment 4•13 years ago
|
||
Yeah it's ugly, but afaik there's no good STL equivalent, and I'd just be doing lots of finds and copying and stuff. Blech.
https://github.com/mozilla/Negatus/commit/2ac510344384ba2f91db8e1c66b860e5fe2dedd2
Status: ASSIGNED → RESOLVED
Closed: 13 years ago
Resolution: --- → FIXED
Updated•8 years ago
|
Product: Testing → Testing Graveyard
You need to log in
before you can comment on or make changes to this bug.
Description
•