summaryrefslogtreecommitdiff
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
commit59dff6756941818b99418e4931add233a761acbd (patch)
tree617114438a76cc548592c0cd03bacbb319d3eca5
parent41be03932647b5d59adccb360e822e7db1ee9984 (diff)
downloadpyserial-git-59dff6756941818b99418e4931add233a761acbd.tar.gz
- allow that the port can be passed on command line
- output pySerial version that is tested
-rw-r--r--pyserial/test/run_all_tests.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/pyserial/test/run_all_tests.py b/pyserial/test/run_all_tests.py
index b4a954d..863057e 100644
--- a/pyserial/test/run_all_tests.py
+++ b/pyserial/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()