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
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 > ')