tests: avoid spurious failures under "make distcheck"
authorStefano Lattarini <stefano.lattarini@gmail.com>
Wed, 22 Feb 2012 11:30:38 +0000 (12:30 +0100)
committerStefano Lattarini <stefano.lattarini@gmail.com>
Wed, 22 Feb 2012 12:31:31 +0000 (13:31 +0100)
commit66873b596119fc691f1b1c05aa6d09f2ff1b5849
tree6df1e2bd0abbd1242b29cc6272fe3756229f2103
parente5e6fa03884708e2a48d081a460401c25badfc20
tests: avoid spurious failures under "make distcheck"

* tests/tap-setup.sh: Pass also '-f' option to 'cp' invocations,
so that files that have already been copied in without write
permissions will still be overwritten where needed, instead of
causing a spurious testsuite failure.  Issue seen when the
testsuite is run under "distcheck".
* tests/defs (get_shell_script): Remove target file before
overwriting it, for the same reason.  Rework code flow a bit
since we are at it.
tests/defs
tests/tap-setup.sh