summaryrefslogtreecommitdiff
path: root/bin
diff options
authorPMR <pmr@pmr-lander>2020-05-27 08:58:31 +0000
committerPMR <pmr@pmr-lander>2020-05-27 08:58:31 +0000
commitb8cfe34f2335f023d7d0875a4046bc2091ed70a9 (patch)
treefa56f8102756512466c9b182a061d3973761eaf5 /bin
parentc1d20da121167aacac435f66886e3f1b35dbfa90 (diff)
parentd6055f0dafe39ded92b21597e45c3d6d740865c7 (diff)
Merge #383957 from ~bladernr/plainbox-provider-checkbox:1878614-modify-network-script-failure-output
LP:1878614 - bin/network: modified test failure message to be more explicit when a test run fails
Diffstat (limited to 'bin')
-rwxr-xr-xbin/network10
1 files changed, 5 insertions, 5 deletions
diff --git a/bin/network b/bin/network
index 5bdf1f0..fea7f72 100755
--- a/bin/network
+++ b/bin/network
@@ -252,16 +252,16 @@ class IPerfPerformanceTest(object):
cpu_load = 0
if percent < self.fail_threshold or \
cpu_load > self.cpu_load_fail_threshold:
- logging.warning("Poor network performance detected against {}".
+ logging.warning("The network test against {} failed because:".
format(self.target))
if percent < self.fail_threshold:
- logging.warning(" Transfer speed: {} Mb/s".
+ logging.error(" Transfer speed: {} Mb/s".
format(throughput))
- logging.warning(" {:03.2f}% of theoretical max {} Mb/s\n".
+ logging.error(" {:03.2f}% of theoretical max {} Mb/s\n".
format(percent, int(self.iface.max_speed)))
if cpu_load > self.cpu_load_fail_threshold:
- logging.warning(" CPU load: {}%".format(cpu_load))
- logging.warning(" CPU load is above {}% maximum\n".
+ logging.error(" CPU load: {}%".format(cpu_load))
+ logging.error(" CPU load is above {}% maximum\n".
format(self.cpu_load_fail_threshold))
return 30