else:
die("No valid verb was entered.")
- cmd = " ".join(str(x) for x in cmdline)
+ cmd = [str(x) for x in cmdline]
# Here we have something equivalent to the command lines used on spawn() and run() from backend.py.
# We use pexpect to boot an image that we will be able to interact with in the future.
# Then we tell the process to look for the # sign, which indicates the CLI for that image is active.
# Once we've build/boot an image the CLI will prompt "root@image ~]# ".
# Then, when pexpects finds the '#' it means we're ready to interact with the process.
- self._serial = pexpect.spawnu(cmd, logfile=LogfileAdapter(sys.stdout), timeout=240)
+ self._serial = pexpect.spawnu(command=cmd[0], args=cmd[1:], logfile=LogfileAdapter(sys.stdout),
+ timeout=240)
self._serial.expect("#")
self.stack = stack.pop_all()