Skip to content

Fix some more RDM tests - #1305

Merged
peternewman merged 4 commits into
OpenLightingProject:masterfrom
peternewman:rdm-test-generation
Aug 20, 2017
Merged

Fix some more RDM tests#1305
peternewman merged 4 commits into
OpenLightingProject:masterfrom
peternewman:rdm-test-generation

Conversation

@peternewman

Copy link
Copy Markdown
Member

(cherry picked from commit 027e693)

@peternewman peternewman added this to the 0.11.0 milestone Aug 15, 2017
(cherry picked from commit 7b4d5f7)
Comment thread tools/rdm/TestMixins.py
self.NackSetResult(RDMNack.NR_FORMAT_ERROR),
# TODO(Peter): Fix this, ideally we change behaviour based on past
# support of the PID
self.NackSetResult(RDMNack.NR_UNSUPPORTED_COMMAND_CLASS),

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

why is this changing?

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Think of e.g device hours, a responder may not support setting it, in which case this response is valid, depending on the order packet format and command class are checked.

The future extension is to remember if we succeeded on a normal SetDeviceHours, pass that in and advisory/warn here that the normal one succeeded and this didn't fail with NR_FORMAT_ERROR.

I can add a warning/advisory to these in the interim saying this should really be an NR_FORMAT_ERROR if you'd like, but I don't think that's correct if SET isn't supported generally for the PID.

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Are you happy with that as an explanation @nomis52, or do we need a different plan going forward?

@peternewman
peternewman merged commit cd7755a into OpenLightingProject:master Aug 20, 2017
@peternewman peternewman mentioned this pull request Jul 12, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants