genfio: Enforce time_based if runtime > 0
authorErwan Velu <erwan@enovance.com>
Fri, 12 Jul 2013 15:13:59 +0000 (17:13 +0200)
committerErwan Velu <erwan@enovance.com>
Fri, 12 Jul 2013 15:13:59 +0000 (17:13 +0200)
If the device is short and the bandwidth pretty high, we can exit
_before_ runtime is achieved. To avoid this phenomena, let's use
time_based directive that will ensure that no run will be shorten.

tools/genfio

index 4c1e710..6d3220d 100755 (executable)
@@ -101,6 +101,7 @@ EOF
 if [ "$RUNTIME" != "0" ]; then
 cat >>$TEMPLATE << EOF
 runtime=$RUNTIME
+time_based
 EOF
 fi