projects
/
fio.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
testing: use max-jobs to speed up testing
[fio.git]
/
t
/
latency_percentiles.py
diff --git
a/t/latency_percentiles.py
b/t/latency_percentiles.py
index 0c8d0c194aa3a94c78664ba3e2455f68fdcc327d..6ce4579ace36a8160a1c224ebb95a372c070276e 100755
(executable)
--- a/
t/latency_percentiles.py
+++ b/
t/latency_percentiles.py
@@
-109,6
+109,7
@@
class FioLatTest():
"""Run a test."""
fio_args = [
"""Run a test."""
fio_args = [
+ "--max-jobs=16",
"--name=latency",
"--randrepeat=0",
"--norandommap",
"--name=latency",
"--randrepeat=0",
"--norandommap",
@@
-395,6
+396,11
@@
class FioLatTest():
approximation value of the bin used by fio to store a given latency
actual actual latency value
"""
approximation value of the bin used by fio to store a given latency
actual actual latency value
"""
+
+ # Avoid a division by zero. The smallest latency values have no error.
+ if actual == 0:
+ return approximation == 0
+
delta = abs(approximation - actual) / actual
return delta <= 1/128
delta = abs(approximation - actual) / actual
return delta <= 1/128
@@
-1298,9
+1304,9
@@
def main():
(args.run_only and test['test_id'] not in args.run_only):
skipped = skipped + 1
outcome = 'SKIPPED (User request)'
(args.run_only and test['test_id'] not in args.run_only):
skipped = skipped + 1
outcome = 'SKIPPED (User request)'
- elif
platform.system() != 'Linux'
and 'cmdprio_percentage' in test:
+ elif
(platform.system() != 'Linux' or os.geteuid() != 0)
and 'cmdprio_percentage' in test:
skipped = skipped + 1
skipped = skipped + 1
- outcome = 'SKIPPED (Linux required for cmdprio_percentage tests)'
+ outcome = 'SKIPPED (Linux r
oot r
equired for cmdprio_percentage tests)'
else:
test_obj = test['test_obj'](artifact_root, test, args.debug)
status = test_obj.run_fio(fio)
else:
test_obj = test['test_obj'](artifact_root, test, args.debug)
status = test_obj.run_fio(fio)