|
@@ -2,9 +2,10 @@
|
|
|
|
|
|
# This script expect to run from the Buildroot top directory.
|
|
# This script expect to run from the Buildroot top directory.
|
|
|
|
|
|
|
|
+import os
|
|
import pexpect
|
|
import pexpect
|
|
import sys
|
|
import sys
|
|
-import os
|
|
|
|
|
|
+import time
|
|
|
|
|
|
|
|
|
|
def main():
|
|
def main():
|
|
@@ -26,6 +27,10 @@ def main():
|
|
# We want only stdout into the log to avoid double echo
|
|
# We want only stdout into the log to avoid double echo
|
|
child.logfile = sys.stdout
|
|
child.logfile = sys.stdout
|
|
|
|
|
|
|
|
+ # Let the spawn actually try to fork+exec to the wrapper, and then
|
|
|
|
+ # let the wrapper exec the qemu process.
|
|
|
|
+ time.sleep(1)
|
|
|
|
+
|
|
try:
|
|
try:
|
|
child.expect(["buildroot login:", pexpect.TIMEOUT], timeout=60)
|
|
child.expect(["buildroot login:", pexpect.TIMEOUT], timeout=60)
|
|
except pexpect.EOF as e:
|
|
except pexpect.EOF as e:
|