diff --git a/tools/mace_tools.py b/tools/mace_tools.py index f475374e35103fa0c37d4dd22a0bfb5df66bd5b2..13452dd8420b86b66817d957f3e53f3f74f321ba 100644 --- a/tools/mace_tools.py +++ b/tools/mace_tools.py @@ -558,7 +558,7 @@ def main(unused_args): print( "====================================================" ) - print("Trying to lock device", serialno) + print("Trying to lock device %s" % serialno) with sh_commands.device_lock(serialno): print("Run on device: %s, %s, %s" % ( serialno, props["ro.board.platform"], diff --git a/tools/sh_commands.py b/tools/sh_commands.py index 327044a44b628313271f4782f93307f0a9feac49..8817dd93c1fb13099db3d0af6c775aedb9d0d442 100644 --- a/tools/sh_commands.py +++ b/tools/sh_commands.py @@ -46,7 +46,7 @@ def strip_invalid_utf8(str): def make_output_processor(buff): def process_output(line): - print(line.strip()) + print(line.rstrip()) buff.append(line) return process_output @@ -189,7 +189,7 @@ def adb_run(serialno, print( "=====================================================================" ) - print("Trying to lock device", serialno) + print("Trying to lock device %s" % serialno) with device_lock(serialno): print("Run on device: %s, %s, %s" % (serialno, props["ro.board.platform"], @@ -1058,7 +1058,7 @@ def falcon_push_metrics(metrics, endpoint="mace_dev", tags={}): "tags": falcon_tags(tags), "timestamp": ts, "value": value, - "step": 86400, + "step": 600, "counterType": "GAUGE" } for key, value in metrics.iteritems()] cli.update(falcon_metrics)