comparison test/testemulation.py @ 353:b8ad45b3a573

Started with strings
author Windel Bouwman
date Sun, 09 Mar 2014 18:49:10 +0100
parents 899ae3aea803
children 5477e499b039
comparison
equal deleted inserted replaced
352:899ae3aea803 353:b8ad45b3a573
20 def runQemu(self, kernel, machine='lm3s811evb'): 20 def runQemu(self, kernel, machine='lm3s811evb'):
21 args = ['qemu-system-arm', '-M', machine, '-m', '16M', 21 args = ['qemu-system-arm', '-M', machine, '-m', '16M',
22 '-nographic', '-kernel', kernel, '-monitor', 22 '-nographic', '-kernel', kernel, '-monitor',
23 'unix:qemucontrol.sock,server', 23 'unix:qemucontrol.sock,server',
24 '-serial', 'unix:qemuserial.sock,server'] 24 '-serial', 'unix:qemuserial.sock,server']
25 p = subprocess.Popen(args) 25 p = subprocess.Popen(args, stdout=subprocess.DEVNULL,
26 stderr=subprocess.DEVNULL)
26 27
27 # Give process some time to boot: 28 # Give process some time to boot:
28 time.sleep(0.5) 29 time.sleep(0.5)
29 30
30 # Connect to the control socket: 31 # Connect to the control socket: