Skip to content

Commit

Permalink
restore linefeed at end of st.cmd
Browse files Browse the repository at this point in the history
  • Loading branch information
gilesknap committed Mar 8, 2023
1 parent 5286b1d commit e5777b4
Show file tree
Hide file tree
Showing 7 changed files with 96 additions and 4 deletions.
2 changes: 1 addition & 1 deletion ibek-defs
2 changes: 1 addition & 1 deletion src/ibek/templates/st.cmd.jinja
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,6 @@ ioc_registerRecordDeviceDriver(pdbbase)
dbLoadRecords("/tmp/ioc.db")
iocInit()

{%- if post_ioc_init_elements %}
{% if post_ioc_init_elements %}
{{ post_ioc_init_elements }}
{% endif %}
3 changes: 2 additions & 1 deletion tests/samples/boot_scripts/st.cmd
Original file line number Diff line number Diff line change
Expand Up @@ -11,4 +11,5 @@ pmacCreateAxes(BL45P-MO-BRICK-01, 8)


dbLoadRecords("/tmp/ioc.db")
iocInit()
iocInit()

3 changes: 2 additions & 1 deletion tests/samples/boot_scripts/stbl45p-mo-ioc-03
Original file line number Diff line number Diff line change
Expand Up @@ -14,4 +14,5 @@ for generating the necessary script


dbLoadRecords("/tmp/ioc.db")
iocInit()
iocInit()

2 changes: 2 additions & 0 deletions tests/samples/boot_scripts/stbl45p-mo-ioc-04
Original file line number Diff line number Diff line change
Expand Up @@ -9,5 +9,7 @@ ioc_registerRecordDeviceDriver(pdbbase)

dbLoadRecords("/tmp/ioc.db")
iocInit()


dbpf "BL45P-MO-THIN-01:Y1.TWV", "0.5"

44 changes: 44 additions & 0 deletions tests/samples/schemas/bl45p-mo-ioc-04.ibek.entities.schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -107,6 +107,50 @@
],
"additionalProperties": false
},
{
"type": "object",
"properties": {
"entity_enabled": {
"type": "boolean",
"default": true
},
"command": {
"type": "string",
"description": "An arbitrary command in the startup script before iocInit"
},
"type": {
"type": "string",
"const": "epics.startupCommand",
"default": "epics.startupCommand"
}
},
"required": [
"command"
],
"additionalProperties": false
},
{
"type": "object",
"properties": {
"entity_enabled": {
"type": "boolean",
"default": true
},
"command": {
"type": "string",
"description": "An arbitrary command in the startup script after iocInit"
},
"type": {
"type": "string",
"const": "epics.postStartupCommand",
"default": "epics.postStartupCommand"
}
},
"required": [
"command"
],
"additionalProperties": false
},
{
"type": "object",
"properties": {
Expand Down
44 changes: 44 additions & 0 deletions tests/samples/schemas/epics.ibek.support.schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -106,6 +106,50 @@
"value"
],
"additionalProperties": false
},
{
"type": "object",
"properties": {
"entity_enabled": {
"type": "boolean",
"default": true
},
"command": {
"type": "string",
"description": "An arbitrary command in the startup script before iocInit"
},
"type": {
"type": "string",
"const": "epics.startupCommand",
"default": "epics.startupCommand"
}
},
"required": [
"command"
],
"additionalProperties": false
},
{
"type": "object",
"properties": {
"entity_enabled": {
"type": "boolean",
"default": true
},
"command": {
"type": "string",
"description": "An arbitrary command in the startup script after iocInit"
},
"type": {
"type": "string",
"const": "epics.postStartupCommand",
"default": "epics.postStartupCommand"
}
},
"required": [
"command"
],
"additionalProperties": false
}
]
},
Expand Down

0 comments on commit e5777b4

Please sign in to comment.