X-Git-Url: http://git.zerfleddert.de/cgi-bin/gitweb.cgi/proxmark3-svn/blobdiff_plain/0a43c39617c54bec85fd9220544e7d2bdfc325d1..db69363840b12d68566d7be2de512bf4c7c51b4e:/client/scripts/tracetest.lua?ds=sidebyside diff --git a/client/scripts/tracetest.lua b/client/scripts/tracetest.lua index f17f7567..e4a9215c 100644 --- a/client/scripts/tracetest.lua +++ b/client/scripts/tracetest.lua @@ -74,7 +74,7 @@ local function main(args) local outputTemplate = os.date("testtest_%Y-%m-%d_%H%M%S") -- Arguments for the script - for o, arg in getopt.getopt(args, 'hk:no:') do + for o, arg in getopt.getopt(args, 'ho:') do if o == "h" then return help() end if o == "o" then outputTemplate = arg end end @@ -84,18 +84,20 @@ local function main(args) local files = {} -- Find a set of traces staring with EM - local p = io.popen(tracesEM) + local p = assert( io.popen(tracesEM)) for file in p:lines() do table.insert(files, file) end + p.close(); -- Find a set of traces staring with MOD - p = io.popen(tracesMOD) + p = assert( io.popen(tracesMOD) ) for file in p:lines() do table.insert(files, file) end - - local cmdLFSEARCH = "lf search" + p.close(); + + local cmdLFSEARCH = "lf search 1" -- main loop io.write('Starting to test traces > ')