ubuntu_performance_multipass failed with "ZeroDivisionError: float division by zero"
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
ubuntu-kernel-tests |
Fix Released
|
Undecided
|
Unassigned |
Bug Description
Test log:
21:37:38 INFO | START ubuntu_
21:37:38 DEBUG| Persistent state client.
21:37:38 DEBUG| Persistent state client.
21:37:38 DEBUG| Waiting for pid 5606 for 1800 seconds
21:37:38 WARNI| System python is too old, crash handling disabled
21:37:39 INFO | failed to launch
21:37:39 INFO | failed to launch
21:37:39 INFO | failed to launch
21:37:40 INFO | failed to launch
21:38:57 DEBUG| Running 'multipass list'
21:38:58 DEBUG| [stdout] Name State IPv4 Image
21:38:58 DEBUG| [stdout] test4xenial Running 10.250.98.194 Ubuntu 16.04 LTS
21:38:58 DEBUG| Running 'multipass exec test4xenial -- uname -r'
21:38:58 DEBUG| [stdout] 4.4.0-210-generic
21:38:58 DEBUG| Running 'multipass exec test4xenial -- systemd-analyze'
21:38:59 DEBUG| [stdout] Startup finished in 3.839s (kernel) + 29.210s (userspace) = 33.050s
21:39:02 ERROR| Exception escaping from test:
Traceback (most recent call last):
File "/home/
_call_
File "/home/
raise error.Unhandled
UnhandledTestFail: Unhandled ZeroDivisionError: float division by zero
Traceback (most recent call last):
File "/home/
return func(*args, **dargs)
File "/home/
postprocess
File "/home/
self.
File "/home/
stddev = sqrt(float(
ZeroDivisionError: float division by zero
Related branches
- Francis Ginther: Approve
-
Diff: 17 lines (+2/-1)1 file modifiedubuntu_performance_multipass/ubuntu_performance_multipass.py (+2/-1)
Changed in ubuntu-kernel-tests: | |
status: | New → Fix Released |
This happens when calculating the sample standard deviation. When there is just one result, formula "(len(results) - 1)" will be zero.