summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorcliechti <cliechti@f19166aa-fa4f-0410-85c2-fa1106f25c8a>2010-01-02 03:03:29 +0000
committercliechti <cliechti@f19166aa-fa4f-0410-85c2-fa1106f25c8a>2010-01-02 03:03:29 +0000
commitfd4c21293380e5bc87f6d965c7e737c9bf178605 (patch)
tree486af11e8ed03cce9b8b00a9dfe6214325ee71e2 /test
parent3e1529735675c583301caf8ca82b2245e1045db9 (diff)
downloadpyserial-fd4c21293380e5bc87f6d965c7e737c9bf178605.tar.gz
- allow that the port can be passed on command line
- output pySerial version that is tested git-svn-id: http://svn.code.sf.net/p/pyserial/code/trunk/pyserial@354 f19166aa-fa4f-0410-85c2-fa1106f25c8a
Diffstat (limited to 'test')
-rw-r--r--test/run_all_tests.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/test/run_all_tests.py b/test/run_all_tests.py
index b4a954d..863057e 100644
--- a/test/run_all_tests.py
+++ b/test/run_all_tests.py
@@ -15,7 +15,12 @@ import time
# working copy
sys.path.insert(0, '..')
+import serial
+print "Patching sys.path to test local version. Testing Version: %s" % (serial.VERSION,)
+
PORT = 'loop://'
+if len(sys.argv) > 1:
+ PORT = sys.argv[1]
# find files and the tests in them
mainsuite = unittest.TestSuite()