Changeset e4a1497 in mainline for tools/ew.py


Ignore:
Timestamp:
2013-03-09T14:59:42Z (11 years ago)
Author:
Jakub Jermar <jakub@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
05bab88, d8d7a0d
Parents:
2277e03
Message:

Improve the emulator wrapper.

  • Python 3 compatible print's.
  • Redirect the remcons port.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • tools/ew.py

    r2277e03 re4a1497  
    3939def run_in_console(cmd, title):
    4040        cmdline = 'xterm -T ' + '"' + title + '"' + ' -e ' + cmd
    41         print cmdline
     41        print(cmdline)
    4242        subprocess.call(cmdline, shell = True);
    4343
     
    8181def qemu_net_options():
    8282        nic_options = qemu_nic_e1k_options()
    83         return nic_options + ' -net user -redir udp:8080::8080 -redir udp:8081::8081 -redir tcp:8080::8080 -redir tcp:8081::8081'
     83        return nic_options + ' -net user -redir udp:8080::8080 -redir udp:8081::8081 -redir tcp:8080::8080 -redir tcp:8081::8081 -redir tcp:2223::2223'
    8484
    8585def qemu_usb_options():
     
    114114                run_in_console(cmdline, title)
    115115        else:
    116                 print cmdline
     116                print(cmdline)
    117117                subprocess.call(cmdline, shell = True)
    118118               
     
    159159                emu_run, console, image, networking, storage, usb = emulators[platform][mach]
    160160        except:
    161                 print "Cannot start emulation for the chosen configuration."
     161                print("Cannot start emulation for the chosen configuration.")
    162162                return
    163163
Note: See TracChangeset for help on using the changeset viewer.