Add THP test variants to tests_base.cfg.sample
[autotest-zwu.git] / server / samples / autoserv_console.srv
blob04bf4534304bf4b827f5541d7688068196850600
1 # autoserv_console.srv - gives you an interactive interpreter within an autoserv
2 # control file.  If you pass "-m hostname", a RemoteHost will be available under
3 # the variable "host".
5 # If you install IPython (http://ipython.scipy.org/, Ubuntu package "ipython"),
6 # you'll get a snazzy IPython console with readline and completion and all that.
7 # Otherwise you'll get a simple console without any of that.
9 # -Steve Howard (showard@google.com)
11 if machines:
12     host = hosts.create_host(machines[0])
14 try:
15     import IPython
16     ipshell = IPython.Shell.IPShellEmbed(argv=[])
17     ipshell()
18 except ImportError:
19     import code
20     code.interact("Autoserv console", raw_input, locals())