Closed
Bug 1055959
Opened 10 years ago
Closed 9 years ago
[NFC] testNfcBadSessionIdError testcase fail
Categories
(Firefox OS Graveyard :: NFC, defect)
Tracking
(firefox45 fixed)
RESOLVED
FIXED
2.6 S1 - 11/20
Tracking | Status | |
---|---|---|
firefox45 | --- | fixed |
People
(Reporter: dlee, Assigned: tnguyen)
References
Details
Attachments
(2 files, 4 obsolete files)
Run following command ./mach marionette-webapi ./gecko/dom/nfc/tests/marionette/manifest.ini Testcase testNfcBadSessionIdError in test_nfc_error_messages.js will fail. This is related to Bug 1050621, because the bug fixing change the behavior of nfcd (do not reset rf when receive deactivate notification). So when emulator deactivate remote end point and try to activate it again, it will fail to activate, I will fix this bug in emulator side.
Blocks: b2g-nfc-emulator
Reporter | ||
Comment 1•10 years ago
|
||
Assignee | ||
Updated•9 years ago
|
Assignee: dlee → tnguyen
Assignee | ||
Comment 2•9 years ago
|
||
There's something wrong in nci state transition. Deactivate() called from JS does not trigger state transition, as the result the next activate command will throw an error. According to NFC Controller Interface (NCI) Specification, NCI state should be changed after NFCC send RF_DEACTIVATE_RSP/NTF. Thanks
Attachment #8478925 -
Attachment is obsolete: true
Attachment #8687057 -
Flags: feedback?(dlee)
Reporter | ||
Comment 3•9 years ago
|
||
Comment on attachment 8687057 [details] [review] Qemu PR v1 Comments addressed in PR, please ask for feedback again after comments answered, thanks!
Attachment #8687057 -
Flags: feedback?(dlee)
Assignee | ||
Comment 4•9 years ago
|
||
- Removed unused code - Code readability
Attachment #8687057 -
Attachment is obsolete: true
Attachment #8687752 -
Flags: feedback?(dlee)
Assignee | ||
Comment 5•9 years ago
|
||
Enable nfc test case
Attachment #8687762 -
Flags: review?(allstars.chh)
Attachment #8687762 -
Flags: review?(allstars.chh) → review+
Reporter | ||
Comment 6•9 years ago
|
||
Comment on attachment 8687752 [details] [review] external qemu PR Looks good to me, thanks!
Attachment #8687752 -
Flags: feedback?(dlee) → feedback+
Assignee | ||
Updated•9 years ago
|
Attachment #8687752 -
Flags: review?(tzimmermann)
Comment 7•9 years ago
|
||
Comment on attachment 8687752 [details] [review] external qemu PR Hi! thanks for the fixing this bug. It's been a while since I worked on this code, so I had to dig through it to understand what the problem is. Let me know if I missed the point somewhere. I left a number of comments in the pull request. Please ask me for another review once you've gone through them.
Attachment #8687752 -
Flags: review?(tzimmermann)
Assignee | ||
Comment 8•9 years ago
|
||
Thanks for your review.
Attachment #8687752 -
Attachment is obsolete: true
Attachment #8688283 -
Flags: review?(tzimmermann)
Comment 9•9 years ago
|
||
Comment on attachment 8688283 [details] [review] external qemu v2 Looks good now. Thanks for this fix! Please have a look at the nits I commented in the pull request before landing the patch.
Attachment #8688283 -
Flags: review?(tzimmermann) → review+
Assignee | ||
Comment 10•9 years ago
|
||
- Fixed nits Thanks Thomas for your review.
Attachment #8688283 -
Attachment is obsolete: true
Attachment #8688345 -
Flags: review+
Assignee | ||
Comment 11•9 years ago
|
||
Try result https://treeherder.mozilla.org/#/jobs?repo=try&revision=8ee8de98a10e
Keywords: checkin-needed
Comment 12•9 years ago
|
||
I saw that you closed the old pull requests on Github. Instead, you can also just push the changes into your source branch on Github and the pull request should be updated automatically. Might be more comfortable.
Comment 13•9 years ago
|
||
(In reply to Thomas Nguyen[:tnguyen][:thomas][:nguyen] from comment #11) > Try result > https://treeherder.mozilla.org/#/jobs?repo=try&revision=8ee8de98a10e It's not that easy because try won't pick-up your emulator changes by default. Only Gecko changes will be tested. To modify one of the other repositories, you have to modify the respective sources.xml file under b2g/config. For example to test the change to emulator-x86-kk, you'd have to change b2g/config/emulator-x86-kk/sources.xml. You have to add your Github account to the repositories and change the remote and revision of the non-Gecko project to point to your patch. If you push that change to try, try will fetch your non-Gecko modifications.
Assignee | ||
Comment 14•9 years ago
|
||
Try result looks ok. Seems that the test cases were not run. I will do as you said and run try again. Thanks
Comment 15•9 years ago
|
||
(In reply to Thomas Nguyen[:tnguyen][:thomas][:nguyen] from comment #14) > Try result looks ok. Seems that the test cases were not run. > I will do as you said and run try again. > Thanks I don't think we currently run automated NFC tests.
Assignee | ||
Comment 16•9 years ago
|
||
Thanks Thomas, Currently, marionette-webapi nfc tests were skipped in testing/marionette/client/marionette/tests/webapi-tests.ini). Also, some job flags would be changed to enable running test case in try. I will try to modify and see Remove checkin-needed to cherry-pick to other emulator platforms (ics, lollipop, jb, ...) and push to try.
Keywords: checkin-needed
Assignee | ||
Comment 17•9 years ago
|
||
Try (staging) result running marionette-webapi https://treeherder.allizom.org/#/jobs?repo=try&revision=bfd326e5ce7d&selectedJob=14334850&filter-tier=1 The test result failed (but it failed in test_cellbroadcast_umts_language_and_body.js, it's another story) All Nfc test cases passed.
Comment 19•9 years ago
|
||
https://github.com/mozilla-b2g/platform_external_qemu/commit/b2f83825411be614e8f7ec75fc731fc9c67a7078 for the gaia checkin
Comment 20•9 years ago
|
||
https://hg.mozilla.org/integration/b2g-inbound/rev/8703ad09f207
Keywords: checkin-needed
Comment 21•9 years ago
|
||
bugherder |
https://hg.mozilla.org/mozilla-central/rev/8703ad09f207
Status: ASSIGNED → RESOLVED
Closed: 9 years ago
status-firefox45:
--- → fixed
Resolution: --- → FIXED
Target Milestone: 2.1 S4 (12sep) → 2.6 S1 - 11/20
You need to log in
before you can comment on or make changes to this bug.
Description
•