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/100-cannot_open_files.sh | |
| parent | 9280ff2c747a5a59f0a6e0cc6335b24de62cacc9 (diff) | |
Use options instead of positional arguments for file paths
Diffstat (limited to 'tests/100-cannot_open_files.sh')
| -rw-r--r-- | tests/100-cannot_open_files.sh | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/100-cannot_open_files.sh b/tests/100-cannot_open_files.sh index 64d2a87..34cf3e0 100644 --- a/tests/100-cannot_open_files.sh +++ b/tests/100-cannot_open_files.sh @@ -6,18 +6,18 @@ PROGRAM_EXEC="$1" rm -f input base out touch base out -assert "" "cannot get size of input file" 1 $PROGRAM_EXEC backup input base out +assert "" "cannot get size of input file" 1 $PROGRAM_EXEC backup -i input -b base -o out rm -f input base out touch input out -assert "" "cannot get size of base file" 1 $PROGRAM_EXEC backup input base out +assert "" "cannot get size of base file" 1 $PROGRAM_EXEC backup -i input -b base -o out rm -f input base out rmdir outdir 2>/dev/null touch input base mkdir outdir chmod -w outdir -assert "" "cannot open output file" 1 $PROGRAM_EXEC backup input base outdir/out +assert "" "cannot open output file" 1 $PROGRAM_EXEC backup -i input -b base -o outdir/out rm -f input base out rmdir outdir |
