rtems-proxy 0.3.0__tar.gz → 0.5.0__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {rtems-proxy-0.3.0 → rtems-proxy-0.5.0}/PKG-INFO +1 -1
- {rtems-proxy-0.3.0 → rtems-proxy-0.5.0}/src/rtems_proxy/__main__.py +0 -1
- {rtems-proxy-0.3.0 → rtems-proxy-0.5.0}/src/rtems_proxy/_version.py +2 -2
- {rtems-proxy-0.3.0 → rtems-proxy-0.5.0}/src/rtems_proxy/rsync.sh.jinja +1 -1
- {rtems-proxy-0.3.0 → rtems-proxy-0.5.0}/src/rtems_proxy/telnet.py +9 -1
- {rtems-proxy-0.3.0 → rtems-proxy-0.5.0}/src/rtems_proxy/utils.py +0 -2
- {rtems-proxy-0.3.0 → rtems-proxy-0.5.0}/src/rtems_proxy.egg-info/PKG-INFO +1 -1
- {rtems-proxy-0.3.0 → rtems-proxy-0.5.0}/.copier-answers.yml +0 -0
- {rtems-proxy-0.3.0 → rtems-proxy-0.5.0}/.devcontainer/devcontainer.json +0 -0
- {rtems-proxy-0.3.0 → rtems-proxy-0.5.0}/.github/CONTRIBUTING.md +0 -0
- {rtems-proxy-0.3.0 → rtems-proxy-0.5.0}/.github/actions/install_requirements/action.yml +0 -0
- {rtems-proxy-0.3.0 → rtems-proxy-0.5.0}/.github/dependabot.yml +0 -0
- {rtems-proxy-0.3.0 → rtems-proxy-0.5.0}/.github/pages/index.html +0 -0
- {rtems-proxy-0.3.0 → rtems-proxy-0.5.0}/.github/pages/make_switcher.py +0 -0
- {rtems-proxy-0.3.0 → rtems-proxy-0.5.0}/.github/workflows/_check.yml +0 -0
- {rtems-proxy-0.3.0 → rtems-proxy-0.5.0}/.github/workflows/_dist.yml +0 -0
- {rtems-proxy-0.3.0 → rtems-proxy-0.5.0}/.github/workflows/_pypi.yml +0 -0
- {rtems-proxy-0.3.0 → rtems-proxy-0.5.0}/.github/workflows/_release.yml +0 -0
- {rtems-proxy-0.3.0 → rtems-proxy-0.5.0}/.github/workflows/_test.yml +0 -0
- {rtems-proxy-0.3.0 → rtems-proxy-0.5.0}/.github/workflows/_tox.yml +0 -0
- {rtems-proxy-0.3.0 → rtems-proxy-0.5.0}/.github/workflows/ci.yml +0 -0
- {rtems-proxy-0.3.0 → rtems-proxy-0.5.0}/.gitignore +0 -0
- {rtems-proxy-0.3.0 → rtems-proxy-0.5.0}/.pre-commit-config.yaml +0 -0
- {rtems-proxy-0.3.0 → rtems-proxy-0.5.0}/.vscode/extensions.json +0 -0
- {rtems-proxy-0.3.0 → rtems-proxy-0.5.0}/.vscode/launch.json +0 -0
- {rtems-proxy-0.3.0 → rtems-proxy-0.5.0}/.vscode/settings.json +0 -0
- {rtems-proxy-0.3.0 → rtems-proxy-0.5.0}/.vscode/tasks.json +0 -0
- {rtems-proxy-0.3.0 → rtems-proxy-0.5.0}/Dockerfile +0 -0
- {rtems-proxy-0.3.0 → rtems-proxy-0.5.0}/LICENSE +0 -0
- {rtems-proxy-0.3.0 → rtems-proxy-0.5.0}/README.md +0 -0
- {rtems-proxy-0.3.0 → rtems-proxy-0.5.0}/catalog-info.yaml +0 -0
- {rtems-proxy-0.3.0 → rtems-proxy-0.5.0}/proxy-start.sh +0 -0
- {rtems-proxy-0.3.0 → rtems-proxy-0.5.0}/pyproject.toml +0 -0
- {rtems-proxy-0.3.0 → rtems-proxy-0.5.0}/requirements.txt +0 -0
- {rtems-proxy-0.3.0 → rtems-proxy-0.5.0}/setup.cfg +0 -0
- {rtems-proxy-0.3.0 → rtems-proxy-0.5.0}/src/rtems_proxy/__init__.py +0 -0
- {rtems-proxy-0.3.0 → rtems-proxy-0.5.0}/src/rtems_proxy/copy.py +0 -0
- {rtems-proxy-0.3.0 → rtems-proxy-0.5.0}/src/rtems_proxy/globals.py +0 -0
- {rtems-proxy-0.3.0 → rtems-proxy-0.5.0}/src/rtems_proxy.egg-info/SOURCES.txt +0 -0
- {rtems-proxy-0.3.0 → rtems-proxy-0.5.0}/src/rtems_proxy.egg-info/dependency_links.txt +0 -0
- {rtems-proxy-0.3.0 → rtems-proxy-0.5.0}/src/rtems_proxy.egg-info/entry_points.txt +0 -0
- {rtems-proxy-0.3.0 → rtems-proxy-0.5.0}/src/rtems_proxy.egg-info/requires.txt +0 -0
- {rtems-proxy-0.3.0 → rtems-proxy-0.5.0}/src/rtems_proxy.egg-info/top_level.txt +0 -0
- {rtems-proxy-0.3.0 → rtems-proxy-0.5.0}/tests/conftest.py +0 -0
- {rtems-proxy-0.3.0 → rtems-proxy-0.5.0}/tests/test_cli.py +0 -0
|
@@ -10,9 +10,9 @@ export IOC_PATH={{ ioc_path }}
|
|
|
10
10
|
pkill -f rsync-background &>/dev/null
|
|
11
11
|
|
|
12
12
|
ibek dev instance $IOC_PATH
|
|
13
|
+
bash /epics/ioc/install.sh
|
|
13
14
|
|
|
14
15
|
mkdir -p $RTEMS_TFTP_PATH
|
|
15
|
-
cd $RTEMS_TFTP_PATH
|
|
16
16
|
|
|
17
17
|
# get previous contents
|
|
18
18
|
rsync -rt "rsync://$RTEMS_TFTP_IP:12002/files/$IOC_GROUP/$IOC_NAME/" $RTEMS_TFTP_PATH 2>/dev/null
|
|
@@ -92,6 +92,8 @@ class TelnetRTEMS:
|
|
|
92
92
|
bootloader. Because there is a possibility that we are in the middle
|
|
93
93
|
of a reboot, we will retry for one before giving up.
|
|
94
94
|
"""
|
|
95
|
+
assert self._child, "must call connect before check_prompt"
|
|
96
|
+
|
|
95
97
|
while retries > 0:
|
|
96
98
|
try:
|
|
97
99
|
# see if we are in the IOC shell
|
|
@@ -123,6 +125,8 @@ class TelnetRTEMS:
|
|
|
123
125
|
Reboot the board from IOC shell or bootloader and choose appropriate
|
|
124
126
|
options to get to the state requested by the into argument.
|
|
125
127
|
"""
|
|
128
|
+
assert self._child, "must call connect before reboot"
|
|
129
|
+
|
|
126
130
|
self.report(f"Rebooting into {into.name}")
|
|
127
131
|
current_state = self.check_prompt()
|
|
128
132
|
if current_state == RtemsState.MOT:
|
|
@@ -144,10 +148,12 @@ class TelnetRTEMS:
|
|
|
144
148
|
it into the IOC shell. If the IOC is running, do a reboot only if
|
|
145
149
|
requested (in order to pick up new binaries/startup/epics db)
|
|
146
150
|
"""
|
|
151
|
+
assert self._child, "must call connect before get_epics_prompt"
|
|
152
|
+
|
|
147
153
|
current = self.check_prompt()
|
|
148
154
|
if current != RtemsState.IOC:
|
|
149
155
|
sleep(0.2)
|
|
150
|
-
self.
|
|
156
|
+
self.reboot(RtemsState.IOC)
|
|
151
157
|
self.ioc_rebooted = True
|
|
152
158
|
self._child.expect(self.IOC_STARTED, timeout=50)
|
|
153
159
|
else:
|
|
@@ -163,6 +169,8 @@ class TelnetRTEMS:
|
|
|
163
169
|
Get to the bootloader prompt, if the IOC shell is running then exit
|
|
164
170
|
and send appropriate commands to get to the bootloader
|
|
165
171
|
"""
|
|
172
|
+
assert self._child, "must call connect before get_boot_prompt"
|
|
173
|
+
|
|
166
174
|
current = self.check_prompt()
|
|
167
175
|
if current != RtemsState.MOT:
|
|
168
176
|
# get out of the IOC and return to MOT
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|