[RFC,3/3] btrfs-progs: tests: append '--force-repair-lowmem' if lowmem repair is enabled
diff mbox

Message ID 20180702092820.16285-4-suy.fnst@cn.fujitsu.com
State New
Headers show

Commit Message

Su Yue July 2, 2018, 9:28 a.m. UTC
Since commit 62785de7c107 ("btrfs-progs: lowmem: force to start
without delay with option '--force-repair-lowmem'") delays repair in
lowmem mode.
For tests which repair in lowmem mode, append '--force-repair-lowmem'
to force them to start without delay.

Signed-off-by: Su Yue <suy.fnst@cn.fujitsu.com>
---
 tests/common.local | 1 +
 1 file changed, 1 insertion(+)

Patch
diff mbox

diff --git a/tests/common.local b/tests/common.local
index f5e96f5b73ac..4facc5482ef7 100644
--- a/tests/common.local
+++ b/tests/common.local
@@ -29,6 +29,7 @@  _skip_spec()
 	   echo "$@" | grep -q -- '--repair'; then
 		dir="$(dirname ${@: -1})"
 		if [ -f ${dir}/${beacon} ]; then
+			TEST_ARGS_CHECK+=" --force-repair-lowmem"
 			return 1;
 		fi
 		return 0;