15log = subprocess.check_output([ADB,
'root']).
decode(
'utf-8')
19 raise Exception(
'adb root failed')
21subprocess.check_output([
23 'echo "%s" > /sys/devices/system/cpu/cpu%d/cpufreq/scaling_governor' % (
24 gov, cpu)]).
decode(
'utf-8')
25actual_gov = subprocess.check_output([
26 ADB,
'shell',
'cat /sys/devices/system/cpu/cpu%d/cpufreq/scaling_governor' %
27 cpu]).
decode(
'utf-8').strip()
29 raise Exception(
'(actual, expected) (%s, %s)' % (actual_gov, gov))
def print(*args, **kwargs)
static DecodeResult decode(std::string path)