Skip to content

Commit

Permalink
Small fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
jakev committed Nov 8, 2015
1 parent 4f493d2 commit cb6b19a
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/dtf/core/cmds/init.py
Original file line number Diff line number Diff line change
Expand Up @@ -192,6 +192,9 @@ def initialize_device(self, device_serial):

set_prop('Info', 'serial', device_serial)

# Since we have a serial now, lets create a new DtfAdb instance
self.adb = DtfAdb.DtfAdb()

# Kernel
self.adb.shell_command('cat /proc/version')
kernel = self.adb.get_output()[0]
Expand Down
3 changes: 3 additions & 0 deletions src/dtf/core/packagemanager.py
Original file line number Diff line number Diff line change
Expand Up @@ -336,6 +336,9 @@ def is_python_module(module_path, name):
imp.load_source(name, module_path)
except (NameError, SyntaxError):
return False
except ImportError:
log.w(TAG, "This is a python module, but has non-existent imports!")
return False

return True

Expand Down

0 comments on commit cb6b19a

Please sign in to comment.