Skip to content

Commit

Permalink
Merge pull request #1847 from peternewman/0.10-c11-compat
Browse files Browse the repository at this point in the history
Fix some minor longstanding RDM test bugs
  • Loading branch information
peternewman committed Apr 19, 2023
2 parents e66b26d + a0c1ad7 commit 7a2aec2
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 14 deletions.
2 changes: 1 addition & 1 deletion include/ola/client/Module.h
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
* Sometimes it's useful for client applications to avoid linking against
* libola, say for instance if they install separately from OLA. By deferring
* the linking and using libola as a plugin, clients can use OLA if it's
* installed on the system or if not, take some other action like displaing a
* installed on the system or if not, take some other action like displaying a
* message or using another output mechanism.
*
* This file provides plugin interfaces so that a client code can load
Expand Down
22 changes: 11 additions & 11 deletions tools/rdm/TestDefinitions.py
Original file line number Diff line number Diff line change
Expand Up @@ -4458,8 +4458,8 @@ def VerifyResult(self, response, fields):
self.SetProperty('dmx_fail_settings', fields)


class GetFailUpModeWithData(TestMixins.GetWithDataMixin,
OptionalParameterTestFixture):
class GetDmxFailModeWithExtraData(TestMixins.GetWithDataMixin,
OptionalParameterTestFixture):
"""GET DMX_FAIL_MODE with extra data."""
CATEGORY = TestCategory.ERROR_CONDITIONS
PID = 'DMX_FAIL_MODE'
Expand All @@ -4482,8 +4482,8 @@ def Test(self):
self.SendSet(
ROOT_DEVICE, self.pid,
[settings.get('scene_number', 0),
settings.get('hold_time', 0),
settings.get('loss_of_signal_delay', 0),
settings.get('hold_time', 0),
settings.get('level', 0)]
)

Expand Down Expand Up @@ -4698,8 +4698,8 @@ def GetFailMode(self):
self.SendGet(ROOT_DEVICE, self.pid)


class SetFailModeWithNoData(TestMixins.SetWithNoDataMixin,
OptionalParameterTestFixture):
class SetDmxFailModeWithNoData(TestMixins.SetWithNoDataMixin,
OptionalParameterTestFixture):
"""Set DMX_FAIL_MODE with no data."""
CATEGORY = TestCategory.ERROR_CONDITIONS
PID = 'DMX_FAIL_MODE'
Expand Down Expand Up @@ -4730,8 +4730,8 @@ def VerifyResult(self, response, fields):
self.SetProperty('dmx_startup_settings', fields)


class GetStartUpModeWithData(TestMixins.GetWithDataMixin,
OptionalParameterTestFixture):
class GetStartupModeWithExtraData(TestMixins.GetWithDataMixin,
OptionalParameterTestFixture):
"""Get DMX_STARTUP_MODE with extra data."""
CATEGORY = TestCategory.ERROR_CONDITIONS
PID = 'DMX_STARTUP_MODE'
Expand All @@ -4740,7 +4740,7 @@ class GetStartUpModeWithData(TestMixins.GetWithDataMixin,
class SetDmxStartupMode(OptionalParameterTestFixture):
"""Set DMX_STARTUP_MODE without changing the settings."""
CATEGORY = TestCategory.DMX_SETUP
PID = 'DMX_FAIL_MODE'
PID = 'DMX_STARTUP_MODE'
PROVIDES = ['set_dmx_startup_mode_supported']
REQUIRES = ['dmx_startup_settings']

Expand All @@ -4754,8 +4754,8 @@ def Test(self):
self.SendSet(
ROOT_DEVICE, self.pid,
[settings.get('scene_number', 0),
settings.get('hold_time', 0),
settings.get('startup_delay', 0),
settings.get('hold_time', 0),
settings.get('level', 0)]
)

Expand Down Expand Up @@ -4971,8 +4971,8 @@ def GetStartupMode(self):
self.SendGet(ROOT_DEVICE, self.pid)


class SetStartupModeWithNoData(TestMixins.SetWithNoDataMixin,
OptionalParameterTestFixture):
class SetDmxStartupModeWithNoData(TestMixins.SetWithNoDataMixin,
OptionalParameterTestFixture):
"""Set DMX_STARTUP_MODE with no data."""
CATEGORY = TestCategory.ERROR_CONDITIONS
PID = 'DMX_STARTUP_MODE'
Expand Down
4 changes: 2 additions & 2 deletions tools/rdm/TestMixins.py
Original file line number Diff line number Diff line change
Expand Up @@ -754,7 +754,7 @@ def ResetState(self):
self.SetBroken('Failed to restore DMX_FAIL_MODE settings')
return

for key in ('scene_number', 'hold_time', 'loss_of_signal_delay', 'level'):
for key in ('scene_number', 'loss_of_signal_delay', 'hold_time', 'level'):
if key not in settings:
self.SetBroken(
'Failed to restore DMX_FAIL_MODE settings, missing %s' % key)
Expand Down Expand Up @@ -784,7 +784,7 @@ def ResetState(self):
self.SetBroken('Failed to restore DMX_STARTUP_MODE settings')
return

for key in ('scene_number', 'hold_time', 'startup_delay', 'level'):
for key in ('scene_number', 'startup_delay', 'hold_time', 'level'):
if key not in settings:
self.SetBroken(
'Failed to restore DMX_STARTUP_MODE settings, missing %s' % key)
Expand Down

0 comments on commit 7a2aec2

Please sign in to comment.