3 # additional arguments to various commands
5 # already defined, eg. via make argument
6 if [ -z "$TEST_ENABLE_OVERRIDE" ]; then
8 TEST_ENABLE_OVERRIDE=false
10 TEST_ARGS_CHECK=--mode=lowmem
14 # gets arguments of a current command and can decide if the argument insertion
15 # should happen, eg. if some option combination does not make sense or would
18 # Return 0 if we need to skip option override
19 # Return 1 if we don't need to skip option override
24 beacon=.lowmem_repairable
26 # For lowmem repair, only support fs tree repair for now
27 # So we place lowmem repair beacon in the same dir of the test case
28 if echo "$TEST_ARGS_CHECK" | grep -q 'mode=lowmem' &&
29 echo "$@" | grep -q -- '--repair'; then
30 dir="$(dirname ${@: -1})"
31 if [ -f ${dir}/${beacon} ]; then