[Fuego] [PATCH 05/11] iozone: put asserts on test_pre_check

Daniel Sangorrin daniel.sangorrin at toshiba.co.jp
Thu Mar 1 08:27:16 UTC 2018


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

diff --git a/engine/tests/Benchmark.IOzone/fuego_test.sh b/engine/tests/Benchmark.IOzone/fuego_test.sh
index 107556d..7e24ce4 100755
--- a/engine/tests/Benchmark.IOzone/fuego_test.sh
+++ b/engine/tests/Benchmark.IOzone/fuego_test.sh
@@ -1,5 +1,12 @@
 tarball=iozone3_353.tar
 
+function test_pre_check {
+    assert_define BENCHMARK_IOZONE_MOUNT_BLOCKDEV
+    assert_define BENCHMARK_IOZONE_MOUNT_POINT
+    assert_define BENCHMARK_IOZONE_FILE_SIZE
+    assert_define BENCHMARK_IOZONE_TESTS
+}
+
 function test_build {
     cd src/current
 
@@ -30,11 +37,6 @@ function test_deploy {
 # }
 
 function test_run {
-    assert_define BENCHMARK_IOZONE_MOUNT_BLOCKDEV
-    assert_define BENCHMARK_IOZONE_MOUNT_POINT
-    assert_define BENCHMARK_IOZONE_FILE_SIZE
-    assert_define BENCHMARK_IOZONE_TESTS
-
     hd_test_mount_prepare $BENCHMARK_IOZONE_MOUNT_BLOCKDEV $BENCHMARK_IOZONE_MOUNT_POINT
 
     report "cd $BENCHMARK_IOZONE_MOUNT_POINT; $BOARD_TESTDIR/fuego.$TESTDIR/iozone -a $BENCHMARK_IOZONE_TESTS -O -R -b $BOARD_TESTDIR/fuego.$TESTDIR/results.${BUILD_ID}.${BUILD_NUMBER}.xlsx -g $BENCHMARK_IOZONE_FILE_SIZE"
-- 
2.7.4




More information about the Fuego mailing list