diff options
author | Aaron Lu <aaron.lu@intel.com> | 2016-07-27 14:44:44 +0800 |
---|---|---|
committer | Fengguang Wu <fengguang.wu@intel.com> | 2016-07-27 14:49:32 +0800 |
commit | 0507846f479dbf41177a680fa95850605564e735 (patch) | |
tree | aeb712209d7a4e2eab96cc97feaaf061cfa078c6 | |
parent | 195e6559d20ecf53c4ea8cb4dade47d7162775ac (diff) | |
download | vm-scalability-0507846f479dbf41177a680fa95850605564e735.tar.gz |
hw_vars: remove the default 300s runtime setting
It could be a surprise for people to find their test cases that doesn't
specify runtime in cmdline to have their run stopped prematurely and
only find the runtime is set in hw_vars.
Tests that have a need to be stopped at 300s should set the runtime
environment variable, unconditionally timeout after 300s in hw_vars
doesn't seem appropriate.
Signed-off-by: Aaron Lu <aaron.lu@intel.com>
Signed-off-by: Fengguang Wu <fengguang.wu@intel.com>
-rwxr-xr-x | hw_vars | 8 |
1 files changed, 5 insertions, 3 deletions
@@ -1,8 +1,10 @@ #!/bin/sh -[ -n "$runtime" ] || runtime=300 - -USEMEM="$CMD ./usemem --runtime $runtime" +if [ -n "$runtime" ]; then + USEMEM="$CMD ./usemem --runtime $runtime" +else + USEMEM="$CMD ./usemem" +fi TMPFS_MNT=/tmp/vm-scalability-tmp SHM_FILE=$TMPFS_MNT/sparse-${0#*case-} |