Skip to content

Commit f98362a

Browse files
committed
TST: test IOC is now started in interactive mode by default
1 parent 76b57b3 commit f98362a

File tree

2 files changed

+7
-8
lines changed

2 files changed

+7
-8
lines changed

.github/workflows/testing.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ jobs:
3333
3434
export EPICS_CA_AUTO_ADDR_LIST=NO
3535
export EPICS_CA_ADDR_LIST=127.0.0.1
36-
python ioc/sim_ioc.py &
36+
python ioc/sim_ioc.py --no-shell &
3737
3838
- name: Test with pytest
3939
run: |

ioc/sim_ioc.py

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -31,15 +31,14 @@
3131
)
3232

3333
parser.add_argument(
34-
"--interactive",
35-
"-i",
36-
dest="interactive",
34+
"--no-shell",
35+
dest="no_shell",
3736
action="store_true",
38-
help="Start the IOC with interactive shell",
37+
help="Start the IOC without interactive shell (for running as a background process)",
3938
)
4039

4140
args = parser.parse_args()
42-
if args.interactive:
43-
softioc.interactive_ioc(globals())
44-
else:
41+
if args.no_shell:
4542
softioc.non_interactive_ioc()
43+
else:
44+
softioc.interactive_ioc(globals())

0 commit comments

Comments
 (0)