mirror of
https://github.com/kdave/btrfs-progs
synced 2025-04-21 22:45:18 +00:00
btrfs-progs: tests: arg override in command line
Lowmem mode only repairs few cases which has a beacon file ".lowmem_repairable" in the case' directory. However, defining TEST_ENABLE_OVERRIDE=true in command line does work in above strategy. Because _skip_spec() in tests/common.local isn't interpreted by shell in that case. Solve it by making _skip_spec() always be defined in common.local. Reported-by: David Sterba <dsterba@suse.cz> Signed-off-by: Su Yue <suy.fnst@cn.fujitsu.com> [ keep the _skip_spec check ] Signed-off-by: David Sterba <dsterba@suse.com>
This commit is contained in:
parent
1d4224e4aa
commit
7dbd7f21d5
@ -3,14 +3,13 @@
|
|||||||
# additional arguments to various commands
|
# additional arguments to various commands
|
||||||
|
|
||||||
# already defined, eg. via make argument
|
# already defined, eg. via make argument
|
||||||
if [ -n "$TEST_ENABLE_OVERRIDE" ]; then
|
if [ -z "$TEST_ENABLE_OVERRIDE" ]; then
|
||||||
return
|
# set to 'true'
|
||||||
|
TEST_ENABLE_OVERRIDE=false
|
||||||
|
|
||||||
|
TEST_ARGS_CHECK=--mode=lowmem
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# set to 'true'
|
|
||||||
TEST_ENABLE_OVERRIDE=false
|
|
||||||
|
|
||||||
TEST_ARGS_CHECK=--mode=lowmem
|
|
||||||
|
|
||||||
# gets arguments of a current command and can decide if the argument insertion
|
# gets arguments of a current command and can decide if the argument insertion
|
||||||
# should happen, eg. if some option combination does not make sense or would
|
# should happen, eg. if some option combination does not make sense or would
|
||||||
|
Loading…
Reference in New Issue
Block a user