summaryrefslogtreecommitdiff
path: root/tests/misc-tests/003-zero-log
diff options
context:
space:
mode:
authorDavid Sterba <dsterba@suse.com>2016-10-26 16:41:32 +0200
committerDavid Sterba <dsterba@suse.com>2016-11-09 13:13:37 +0100
commitc8d1c4c7920efea969fedfd6d7b0669832161d22 (patch)
treec57ce99d34a5349b2c3e55a214e29623b71281fe /tests/misc-tests/003-zero-log
parent40de2f62793ad54a91755edb301f2609121137e4 (diff)
btrfs-progs: tests: switch to dump- commands from inspect
The dump-super and debug-tree commands are replacements for the standalone tools. Signed-off-by: David Sterba <dsterba@suse.com>
Diffstat (limited to 'tests/misc-tests/003-zero-log')
-rwxr-xr-xtests/misc-tests/003-zero-log/test.sh9
1 files changed, 4 insertions, 5 deletions
diff --git a/tests/misc-tests/003-zero-log/test.sh b/tests/misc-tests/003-zero-log/test.sh
index b650930e..e7c5c806 100755
--- a/tests/misc-tests/003-zero-log/test.sh
+++ b/tests/misc-tests/003-zero-log/test.sh
@@ -3,7 +3,6 @@
source $TOP/tests/common
-check_prereq btrfs-show-super
check_prereq mkfs.btrfs
check_prereq btrfs
prepare_test_dev
@@ -13,14 +12,14 @@ get_log_root()
local image
image="$1"
- $TOP/btrfs-show-super "$image" | \
+ $TOP/btrfs inspect-internal dump-super "$image" | \
grep '^log_root\>' | awk '{print $2}'
}
get_log_root_level() {
local image
image="$1"
- $TOP/btrfs-show-super "$image" | \
+ $TOP/btrfs inspect-internal dump-super "$image" | \
grep '^log_root_level' | awk '{print $2}'
}
@@ -30,7 +29,7 @@ test_zero_log()
run_check $SUDO_HELPER $TOP/mkfs.btrfs -f \
--rootdir $TOP/Documentation \
$TEST_DEV
- run_check $TOP/btrfs-show-super $TEST_DEV
+ run_check $TOP/btrfs inspect-internal dump-super $TEST_DEV
if [ "$1" = 'standalone' ]; then
run_check $TOP/btrfs rescue zero-log $TEST_DEV
else
@@ -44,7 +43,7 @@ test_zero_log()
if [ "$log_root_level" != 0 ]; then
_fail "FAIL: log_root_level not reset"
fi
- run_check $TOP/btrfs-show-super $TEST_DEV
+ run_check $TOP/btrfs inspect-internal dump-super $TEST_DEV
run_check $SUDO_HELPER $TOP/btrfs check $TEST_DEV
}