summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Lechner <david@pybricks.com>2020-01-15 12:37:02 -0600
committerDamien George <damien.p.george@gmail.com>2020-02-04 17:53:06 +1100
commit7c24f5528582ff1f50a0b24dd360e65342b1fd0c (patch)
tree1b30ff902722f000017e13845278112e3ac977c8
parent122baa678733636336689feeb4e2c8b4807649db (diff)
tests/cmdline/repl_inspect: Add new test for -i option.
This adds a new test to verify that the inspect (-i) command line option works.
-rw-r--r--tests/cmdline/repl_inspect.py2
-rw-r--r--tests/cmdline/repl_inspect.py.exp6
2 files changed, 8 insertions, 0 deletions
diff --git a/tests/cmdline/repl_inspect.py b/tests/cmdline/repl_inspect.py
new file mode 100644
index 000000000..5a7564a3c
--- /dev/null
+++ b/tests/cmdline/repl_inspect.py
@@ -0,0 +1,2 @@
+# cmdline: -c print("test") -i
+# -c option combined with -i option results in REPL
diff --git a/tests/cmdline/repl_inspect.py.exp b/tests/cmdline/repl_inspect.py.exp
new file mode 100644
index 000000000..59f734b2f
--- /dev/null
+++ b/tests/cmdline/repl_inspect.py.exp
@@ -0,0 +1,6 @@
+test
+MicroPython \.\+ version
+Use \.\+
+>>> # cmdline: -c print("test") -i
+>>> # -c option combined with -i option results in REPL
+>>>