Skip to content

Commit b91e32d

Browse files
authored
Fix ioc copier false alarming when #seq is in st-common.cmd
This fixes the IOC copier thinking that a sequence program is being used when this line is in the st-common.cmd: ` #seq sncxxx,"user=vux62295"` - notice the prefixed `#` - i think the device generator puts this in by default, or at least used to. to test follow the instructions here https://github.com/ISISComputingGroup/ibex_developers_manual/wiki/Shared-utility-scripts#ioc-copier with and without a `seq` line in the st-common.cmd
1 parent 77719b4 commit b91e32d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ioc_copier/ioc_copier.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -335,7 +335,7 @@ def check_valid_ioc_to_copy(ioc):
335335
else:
336336
with open(os.path.join("iocBoot", f"ioc{ioc}-IOC-01", "st-common.cmd")) as file_pointer:
337337
text = file_pointer.read()
338-
if "seq " in text:
338+
if "\nseq " in text:
339339
print(
340340
"IOC Appears to contain sequencer commands, duplication should be done manually."
341341
)

0 commit comments

Comments
 (0)