[Fuego] [PATCH 4/4] bonnie: add a hint to the parser

Daniel Sangorrin daniel.sangorrin at toshiba.co.jp
Wed Mar 28 08:32:01 UTC 2018


My boards are too powerful for the default spec but the parser
was not giving any hint for the failure. I added a small hint
so that users know they should change their spec.

Note: personally I would make the more-data spec the default spec.

Signed-off-by: Daniel Sangorrin <daniel.sangorrin at toshiba.co.jp>
---
 engine/tests/Benchmark.bonnie/parser.py | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/engine/tests/Benchmark.bonnie/parser.py b/engine/tests/Benchmark.bonnie/parser.py
index f5e809a..a2bdf00 100755
--- a/engine/tests/Benchmark.bonnie/parser.py
+++ b/engine/tests/Benchmark.bonnie/parser.py
@@ -81,4 +81,8 @@ if not '+' in results[25]:
 if not '+' in results[26]:
     measurements["Random_Create.Delete"].append({"name": "CPU", "measure" : float(results[26])})
 
+# Add a hint when the spec seems to require a bigger SIZE
+if '+' in results[4]:
+    print "\nWARNING: it seems like you need bigger size, try the more-data spec\n"
+
 sys.exit(plib.process(measurements))
-- 
2.7.4




More information about the Fuego mailing list