Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(3286)

Unified Diff: client/samples/control.interactive_console

Issue 4823005: Merge remote branch 'cros/upstream' into tempbranch (Closed) Base URL: http://git.chromium.org/git/autotest.git@master
Patch Set: patch Created 10 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « client/samples/control.fs_options ('k') | client/samples/control.kbuild_and_tests » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: client/samples/control.interactive_console
diff --git a/client/samples/control.interactive_console b/client/samples/control.interactive_console
new file mode 100644
index 0000000000000000000000000000000000000000..75b09abf4147a94be1e5a719802739f85c6e4785
--- /dev/null
+++ b/client/samples/control.interactive_console
@@ -0,0 +1,25 @@
+AUTHOR = "Steve Howard <showard@google.com>"
+TIME = "SHORT"
+NAME = "Sample - Autotest console"
+TEST_TYPE = "client"
+TEST_CLASS = "Kernel"
+TEST_CATEGORY = "Functional"
+
+DOC = """
+Gives you an interactive interpreter within an autotest control file.
+
+If you install IPython (http://ipython.scipy.org/, Ubuntu and Fedora's package
+"ipython"), you'll get a snazzy IPython console with readline and completion
+and all that. Otherwise you'll get a simple python console.
+
+The point of this control file is to give you an interactive interpreter with
+all autotest 'magic' loaded in, so you can inspect objects and have fun.
+"""
+
+try:
+ import IPython
+ ipshell = IPython.Shell.IPShellEmbed(argv=[], banner='autotest console')
+ ipshell()
+except ImportError:
+ import code
+ code.interact('autotest console', raw_input)
« no previous file with comments | « client/samples/control.fs_options ('k') | client/samples/control.kbuild_and_tests » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698