print>>_stderr,"adb finishes unexpectedly with error code",output
return
#run
#run
ifself.options.help:
command=exename+" --help"
else:
command=exename+" "+" ".join(args)
print>>_stderr,"Run command:",command
ifself.setUpisnotNone:
ifself.setUp:
self.setUp()
Popen(self.adb+["shell","export OPENCV_TEST_DATA_PATH="+self.test_data_path+"&& cd "+andoidcwd+"&& ./"+command],stdout=_stdout,stderr=_stderr).wait()
ifself.tearDownisnotNone:
Popen(self.adb+["shell","export OPENCV_TEST_DATA_PATH="+self.options.test_data_path+"&& cd "+andoidcwd+"&& ./"+command],stdout=_stdout,stderr=_stderr).wait()