os.be.*.Machine: Rename CPU -> DUT

Signed-off-by: Jan Lindemann <jan@janware.com>
This commit is contained in:
Jan Lindemann 2022-12-07 17:06:33 +01:00
commit 6e04ffdcbe
2 changed files with 4 additions and 4 deletions

View file

@ -361,10 +361,10 @@ class Machine(MachineBase): # export
async def request_power_on(self, env): async def request_power_on(self, env):
if self.__running: if self.__running:
raise Exception("Tried to power on a running Qemu machine") raise Exception("Tried to power on a running Qemu machine")
slog(NOTICE, "switching on CPU") slog(NOTICE, "switching on DUT")
await self.monitor.write(b'cont\n') await self.monitor.write(b'cont\n')
await self.__await_monitor_prompt() await self.__await_monitor_prompt()
slog(NOTICE, "switched on CPU") slog(NOTICE, "switched on DUT")
self.__running = True self.__running = True
async def wait_up(self, env): async def wait_up(self, env):

View file

@ -54,9 +54,9 @@ class Machine(MachineBase): # export
async def request_power_on(self, env): async def request_power_on(self, env):
if self.__running: if self.__running:
raise Exception("Tried to power on a running shell command machine") raise Exception("Tried to power on a running shell command machine")
slog(NOTICE, "switching on CPU") slog(NOTICE, "switching on DUT")
await self.__run('request-power-on') await self.__run('request-power-on')
slog(NOTICE, "switched on CPU") slog(NOTICE, "switched on DUT")
#await asyncio.sleep(1) #await asyncio.sleep(1)
self.__running = True self.__running = True
self.__clear_for_tests = True self.__clear_for_tests = True