airtest报错 ValueError: invalid literal for int() with base 10: ''

 airtest运行时,偶现报这个错:

Traceback (most recent call last):
  File "E:\software\anaconda3.6\lib\site-packages\airtest\cli\runner.py", line 28, in setUpClass
    setup_by_args(args)
  File "E:\software\anaconda3.6\lib\site-packages\airtest\cli\runner.py", line 130, in setup_by_args
    auto_setup(dirpath, devices, args.log, project_root)
  File "E:\software\anaconda3.6\lib\site-packages\airtest\core\api.py", line 113, in auto_setup
    connect_device(dev)
  File "E:\software\anaconda3.6\lib\site-packages\airtest\core\api.py", line 63, in connect_device
    dev = init_device(platform, uuid, **params)
  File "E:\software\anaconda3.6\lib\site-packages\airtest\core\api.py", line 33, in init_device
    dev = cls(uuid, **kwargs)
  File "E:\software\anaconda3.6\lib\site-packages\airtest\core\android\android.py", line 40, in __init__
    self.sdk_version = self.adb.sdk_version
  File "E:\software\anaconda3.6\lib\site-packages\airtest\core\android\adb.py", line 414, in sdk_version
    self._sdk_version = int(self.getprop(keyname))
ValueError: invalid literal for int() with base 10: ''

初步排查可能是源码的bug,设备初始化时adb相关的问题,暂时将整个异常处理,报用例错误,不影响整体的执行

你可能感兴趣的:(airtest)