From fb2443210fce053a42848d806e96490154355c44 Mon Sep 17 00:00:00 2001 From: Volker Birk Date: Fri, 15 Mar 2019 17:23:07 +0100 Subject: [PATCH] make -e param of sync_handshake.py optional --- test/sync_handshake.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/test/sync_handshake.py b/test/sync_handshake.py index dbcf1a9..103e903 100644 --- a/test/sync_handshake.py +++ b/test/sync_handshake.py @@ -18,6 +18,7 @@ $ cd $DEV && HOME=$PWD lldb python3 -- ../sync_handshake.py -e $DEV import pathlib +import os import pEp import minimail @@ -63,11 +64,12 @@ if __name__=="__main__": optParser.description = __doc__ optParser.add_option("-e", "--exec-for", action="store", type="string", - dest="exec_for", help="execute for name of simulated device") + dest="exec_for", help="execute for name of simulated device " + + "(default: name of actual directory)") options, args = optParser.parse_args() if not options.exec_for: - raise SyntaxError("--exec-for is mandatory, try --help") + options.exec_for = os.path.basename(os.getcwd()) run(options.exec_for)