Skip to content

Commit

Permalink
fix property names (changed in bsw_code_gen 0.1.7)
Browse files Browse the repository at this point in the history
  • Loading branch information
lmbsog0 committed Dec 9, 2022
1 parent 22e0e86 commit cafe678
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions test/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -186,14 +186,14 @@ def __init__(self,
self.can_tp_rx_data = list()
code_gen = BSWCodeGen(config, self.script_directory)
with open(os.path.join(self.build_directory, 'Xcp_Cfg.h'), 'w') as fp:
fp.write(code_gen.header)
fp.write(code_gen.header_cfg)
with open(os.path.join(self.build_directory, 'Xcp_Cfg.c'), 'w') as fp:
fp.write(code_gen.source)
fp.write(code_gen.source_cfg)
with open(self.header, 'r') as fp:
header = fp.read()
self.config = MockGen('_cffi_xcp_cfg_{}'.format(config.get_id),
code_gen.source,
code_gen.header,
code_gen.source_cfg,
code_gen.header_cfg,
define_macros=tuple(self.compile_definitions) +
('XCP_PDU_ID_CTO_RX=0x{:04X}'.format(config.channel_rx_pdu),) +
('XCP_PDU_ID_CTO_TX=0x{:04X}'.format(config.channel_tx_pdu),) +
Expand Down

0 comments on commit cafe678

Please sign in to comment.