diff options
author | a1346054 <36859588+a1346054@users.noreply.github.com> | 2021-09-26 23:57:55 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-09-26 16:57:55 -0700 |
commit | dde469513625c0e10216da9b6f6546aa844431f7 (patch) | |
tree | ca4e2013323105eab83f0a13154cc8e3b8991975 /testsuite/duplicates.test | |
parent | 33379302927313f426fc561ce2c89069e265b9a3 (diff) | |
download | rsync-dde469513625c0e10216da9b6f6546aa844431f7.tar.gz |
Minor cleanup (#214)
- use `grep -E` and `grep -F` (`egrep` and `fgrep` are non-standard)
- use same hashbang style for all test scripts
- use explicit comparisons in test scripts
- remove redundant ; from test scripts
- make test script not executable, just like all the other scripts
- unify codestyle across all test scripts
- make openssl license exception clearer by having it at the top
- use modern links in COPYING. The text now matches:
https://www.gnu.org/licenses/gpl-3.0.txt
- fix typo
Diffstat (limited to 'testsuite/duplicates.test')
-rw-r--r-- | testsuite/duplicates.test | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/testsuite/duplicates.test b/testsuite/duplicates.test index cd2f713a..3317e72f 100644 --- a/testsuite/duplicates.test +++ b/testsuite/duplicates.test @@ -1,11 +1,11 @@ -#! /bin/sh +#!/bin/sh # Copyright (C) 2002 by Martin Pool <mbp@samba.org> # This program is distributable under the terms of the GNU GPL (see # COPYING). -# Test rsync handling of duplicate filenames. +# Test rsync handling of duplicate filenames. # It's quite possible that the user might specify the same source file # more than once on the command line, perhaps through shell variables @@ -33,12 +33,10 @@ checkit "$RSYNC -avv '$fromdir/' '$fromdir/' '$fromdir/' '$fromdir/' '$fromdir/' | tee "$outfile" # Make sure each file was only copied once... -if [ `grep -c '^name1$' "$outfile"` != 1 ] -then +if [ `grep -c '^name1$' "$outfile"` != 1 ]; then test_fail "name1 was not copied exactly once" fi -if [ `grep -c '^name2 -> ' "$outfile"` != 1 ] -then +if [ `grep -c '^name2 -> ' "$outfile"` != 1 ]; then test_fail "name2 was not copied exactly once" fi |