From a52bc70d542456937dc281510417cda9da9c3034 Mon Sep 17 00:00:00 2001 From: Marc Bonnici Date: Thu, 31 May 2018 09:19:12 +0100 Subject: [PATCH] target: Increase timeout for checking if rooted. One some devices executing this command takes longer than the original 2 seconds allowed causing devlib to incorrectly think it was not rooted. --- devlib/target.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/devlib/target.py b/devlib/target.py index 63b5a60..e06da23 100644 --- a/devlib/target.py +++ b/devlib/target.py @@ -85,7 +85,7 @@ class Target(object): if self.connected_as_root: return True try: - self.execute('ls /', timeout=2, as_root=True) + self.execute('ls /', timeout=5, as_root=True) return True except (TargetError, TimeoutError): return False