filters: fix rclexecm test driver for compat with rclaudio
This commit is contained in:
parent
da09d0fc38
commit
2de2f986d3
@ -155,7 +155,8 @@ def main(proto, extract):
|
|||||||
else:
|
else:
|
||||||
# Got a file name parameter: TESTING without an execm parent
|
# Got a file name parameter: TESTING without an execm parent
|
||||||
# Loop on all entries or get specific ipath
|
# Loop on all entries or get specific ipath
|
||||||
if not extract.openfile({'filename:':sys.argv[1]}):
|
params = {'filename:':sys.argv[1]}
|
||||||
|
if not extract.openfile(params):
|
||||||
print "Open error"
|
print "Open error"
|
||||||
sys.exit(1)
|
sys.exit(1)
|
||||||
ipath = ""
|
ipath = ""
|
||||||
@ -163,7 +164,8 @@ def main(proto, extract):
|
|||||||
ipath = sys.argv[2]
|
ipath = sys.argv[2]
|
||||||
|
|
||||||
if ipath != "":
|
if ipath != "":
|
||||||
ok, data, ipath, eof = extract.getipath({'ipath:':ipath})
|
params['ipath:'] = ipath
|
||||||
|
ok, data, ipath, eof = extract.getipath(params)
|
||||||
if ok:
|
if ok:
|
||||||
print "== Found entry for ipath %s (mimetype [%s]):" % \
|
print "== Found entry for ipath %s (mimetype [%s]):" % \
|
||||||
(ipath, proto.mimetype)
|
(ipath, proto.mimetype)
|
||||||
@ -175,10 +177,10 @@ def main(proto, extract):
|
|||||||
|
|
||||||
ecnt = 0
|
ecnt = 0
|
||||||
while 1:
|
while 1:
|
||||||
ok, data, ipath, eof = extract.getnext("")
|
ok, data, ipath, eof = extract.getnext(params)
|
||||||
if ok:
|
if ok:
|
||||||
ecnt = ecnt + 1
|
ecnt = ecnt + 1
|
||||||
print "== Entry %d ipath %s (mimetype [%s]:" % \
|
print "== Entry %d ipath %s (mimetype [%s]):" % \
|
||||||
(ecnt, ipath, proto.mimetype)
|
(ecnt, ipath, proto.mimetype)
|
||||||
# print data
|
# print data
|
||||||
print
|
print
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user