aboutsummaryrefslogtreecommitdiff
path: root/tests/400-successful_backup_restore.sh
diff options
context:
space:
mode:
authorJan Sucan <jan@jansucan.com>2022-06-18 08:50:45 +0200
committerJan Sucan <jan@jansucan.com>2022-06-18 08:50:54 +0200
commit948a65cf39c8ce31c5adc0f24979e0cb55bc33c3 (patch)
treeae923f4594fef0abb777f63291d62530c345b229 /tests/400-successful_backup_restore.sh
parente1d10bea5d9fc94ba800ade1de430c7f3c0ccacd (diff)
Refactor the command line interface
Select operation by its name instead of by number of the arguments.
Diffstat (limited to 'tests/400-successful_backup_restore.sh')
-rw-r--r--tests/400-successful_backup_restore.sh4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/400-successful_backup_restore.sh b/tests/400-successful_backup_restore.sh
index ce5949a..517a458 100644
--- a/tests/400-successful_backup_restore.sh
+++ b/tests/400-successful_backup_restore.sh
@@ -29,7 +29,7 @@ printf '\xFF' | dd of=input bs=1 count=1 seek=$(( (512 * 3) - 1 )) conv=notrunc
# The fourth sector will have the middle byte changed
printf '\xFF' | dd of=input bs=1 count=1 seek=$(( (512 * 4) - (512 / 2) )) conv=notrunc 1>/dev/null 2>&1
-assert_success $PROGRAM_EXEC -s 512 input ref out
+assert "" "" 0 $PROGRAM_EXEC backup -s 512 input ref out
if ! files_are_the_same out 400-expected_backup_output.bin; then
echo "assert: Backup output file differs from the expected one"
@@ -44,7 +44,7 @@ if ! files_are_the_same ref input; then
exit 1
fi
-assert_success $PROGRAM_EXEC -s 512 out input
+assert "" "" 0 $PROGRAM_EXEC restore -s 512 out input
if ! files_are_the_same input backedup_input; then
echo "assert: Cannot restore the backup"