From 1e65b5797bc8e72f8c3f863a4f0ec037eb7f9bf3 Mon Sep 17 00:00:00 2001 From: Volker Birk Date: Sun, 10 Mar 2019 20:38:30 +0100 Subject: [PATCH] ... --- test/sync_handshake.py | 7 +++++-- test/sync_test.py | 10 +++++++++- 2 files changed, 14 insertions(+), 3 deletions(-) diff --git a/test/sync_handshake.py b/test/sync_handshake.py index b121c83..ff844c8 100644 --- a/test/sync_handshake.py +++ b/test/sync_handshake.py @@ -5,6 +5,10 @@ this is being started once per device by sync_test.py you can use this manually for debugging purposes +For debugging try: + +$ cd $DEV && lldb python3 -- sync_handshake.py -e $DEV + """ # Sync test 2.0 @@ -53,8 +57,7 @@ if __name__=="__main__": from optparse import OptionParser optParser = OptionParser() - optParser.description = "For debugging try: $ cd $DEV && lldb python3 -- " \ - + "sync_handshake.py -e $DEV" + optParser.description = __doc__ optParser.add_option("-e", "--exec-for", action="store", type="string", dest="exec_for", help="execute for name of simulated device") diff --git a/test/sync_test.py b/test/sync_test.py index e34572a..607878f 100644 --- a/test/sync_test.py +++ b/test/sync_test.py @@ -1,5 +1,13 @@ # vim: set fileencoding=utf-8 : +"""test runner for sync tests + +Start this with: + +$ python3 sync_test.py + +""" + # Sync test 2.0 # Copyleft 2018, 2019, p≡p foundation @@ -62,7 +70,7 @@ if __name__ == "__main__": from optparse import OptionParser optParser = OptionParser() - optParser.description = "test runner for sync tests" + optParser.description = __doc__ optParser.add_option("-c", "--clean", action="store_true", dest="clean", help="remove all generated files") options, args = optParser.parse_args()