diff options
| author | Jan Sucan <jan@jansucan.com> | 2024-12-28 11:52:13 +0100 |
|---|---|---|
| committer | Ján Sučan <jan@jansucan.com> | 2024-12-31 08:26:48 +0100 |
| commit | e34296bbaa3b80a9c5c1bf6dba3ada28016f03de (patch) | |
| tree | 88c4302c93ee9c0ef8946a0fc305774c4d7d22be /tests/400-successful_backup_restore.sh | |
| parent | 9280ff2c747a5a59f0a6e0cc6335b24de62cacc9 (diff) | |
Use options instead of positional arguments for file paths
Diffstat (limited to 'tests/400-successful_backup_restore.sh')
| -rw-r--r-- | tests/400-successful_backup_restore.sh | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/400-successful_backup_restore.sh b/tests/400-successful_backup_restore.sh index 8274964..fb44dda 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 "" "" 0 $PROGRAM_EXEC backup -s 512 input base out +assert "" "" 0 $PROGRAM_EXEC backup -S 512 -i input -b base -o 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 base input; then exit 1 fi -assert "" "" 0 $PROGRAM_EXEC restore -s 512 out input +assert "" "" 0 $PROGRAM_EXEC restore -S 512 -d out -o input if ! files_are_the_same input backedup_input; then echo "assert: Cannot restore the backup" |
