From 5abb42eab979ed83f29dc32f3304a5e7325c6e2f Mon Sep 17 00:00:00 2001 From: Sergei Trofimov Date: Fri, 18 Sep 2015 09:02:47 +0100 Subject: [PATCH] Do not attempt to get_sysfile_value() as root on unrooted devices. --- wlauto/common/linux/device.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wlauto/common/linux/device.py b/wlauto/common/linux/device.py index ed312aed..daa3f40c 100644 --- a/wlauto/common/linux/device.py +++ b/wlauto/common/linux/device.py @@ -216,7 +216,7 @@ class BaseLinuxDevice(Device): # pylint: disable=abstract-method as a string. """ - output = self.execute('cat \'{}\''.format(sysfile), as_root=True).strip() # pylint: disable=E1103 + output = self.execute('cat \'{}\''.format(sysfile), as_root=self.is_rooted).strip() # pylint: disable=E1103 if kind: return kind(output) else: