Skip to content

Commit

Permalink
test
Browse files Browse the repository at this point in the history
  • Loading branch information
jlashner committed Feb 2, 2024
1 parent b9e6d20 commit bfcc549
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
1 change: 1 addition & 0 deletions socs/testing/device_emulator.py
Original file line number Diff line number Diff line change
Expand Up @@ -165,6 +165,7 @@ def get_response(self, msg):
else:
response = self.responses[msg]
except Exception as e:
self.logger.info(f"Responses: {self.responses}")
self.logger.info(f"encountered error {e}")
self.logger.info(tb.format_exc())
response = None
Expand Down
10 changes: 8 additions & 2 deletions tests/integration/test_hwp_pmx_agent_integration.py
Original file line number Diff line number Diff line change
Expand Up @@ -45,9 +45,15 @@ def test_hwp_rotation_main(wait_for_crossbar, kikusui_emu, run_agent, client):

@pytest.mark.integtest
def test_hwp_rotation_set_off(wait_for_crossbar, kikusui_emu, run_agent, client):
responses = default_responses.copy()
# responses = default_responses.copy()
responses = {}
responses.update({
'output 0': '', 'output?': '0'
'output 0': '', 'output?': '0',
'meas:volt?': '2',
'meas:curr?': '1',
':system:error?': '+0,"No error"\n',
'stat:ques?': '0',
'volt:ext:sour?': 'source_name'
})
kikusui_emu.define_responses(responses)
resp = client.set_off()
Expand Down

0 comments on commit bfcc549

Please sign in to comment.