[Fuego] [PATCH 1/4] bonnie: move prechecks to test_pre_check

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


Signed-off-by: Daniel Sangorrin <daniel.sangorrin at toshiba.co.jp>
---
 engine/tests/Benchmark.bonnie/fuego_test.sh | 12 +++++++-----
 1 file changed, 7 insertions(+), 5 deletions(-)

diff --git a/engine/tests/Benchmark.bonnie/fuego_test.sh b/engine/tests/Benchmark.bonnie/fuego_test.sh
index cfa1c95..b96807c 100755
--- a/engine/tests/Benchmark.bonnie/fuego_test.sh
+++ b/engine/tests/Benchmark.bonnie/fuego_test.sh
@@ -1,5 +1,12 @@
 tarball=bonnie++-1.03e.tar.gz
 
+function test_pre_check {
+    assert_define BENCHMARK_BONNIE_MOUNT_BLOCKDEV
+    assert_define BENCHMARK_BONNIE_MOUNT_POINT
+    assert_define BENCHMARK_BONNIE_SIZE
+    assert_define BENCHMARK_BONNIE_ROOT
+}
+
 function test_build {
     ./configure --host=$HOST --build=`uname -m`-linux-gnu;
     make
@@ -10,11 +17,6 @@ function test_deploy {
 }
 
 function test_run {
-    assert_define BENCHMARK_BONNIE_MOUNT_BLOCKDEV
-    assert_define BENCHMARK_BONNIE_MOUNT_POINT
-    assert_define BENCHMARK_BONNIE_SIZE
-    assert_define BENCHMARK_BONNIE_ROOT
-
     if [ -z "$BENCHMARK_BONNIE_RAM" ] ; then
         BENCHMARK_BONNIE_RAM=0
     fi
-- 
2.7.4




More information about the Fuego mailing list