virt.virt_test_utils: run_autotest - 'tar' needs relative paths to strip the leading '/'
[autotest-zwu.git] / client / samples / control.interactive_console
blob75b09abf4147a94be1e5a719802739f85c6e4785
1 AUTHOR = "Steve Howard <showard@google.com>"
2 TIME = "SHORT"
3 NAME = "Sample - Autotest console"
4 TEST_TYPE = "client"
5 TEST_CLASS = "Kernel"
6 TEST_CATEGORY = "Functional"
8 DOC = """
9 Gives you an interactive interpreter within an autotest control file.
11 If you install IPython (http://ipython.scipy.org/, Ubuntu and Fedora's package
12 "ipython"), you'll get a snazzy IPython console with readline and completion
13 and all that. Otherwise you'll get a simple python console.
15 The point of this control file is to give you an interactive interpreter with
16 all autotest 'magic' loaded in, so you can inspect objects and have fun.
17 """
19 try:
20     import IPython
21     ipshell = IPython.Shell.IPShellEmbed(argv=[], banner='autotest console')
22     ipshell()
23 except ImportError:
24     import code
25     code.interact('autotest console', raw_input)