Re: [PATCH 1/3] Modified test-lib.sh to output stats to /tmp/git-test-results
- From
- Vegard Nossum <vegard.nossum@gmail.com>
- Date
- May 12, 2008, 14:55 UTC
- Message-ID
- <19f34abd0805120755w5d2361d9y86d4b3ba26b2befa@mail.gmail.com>
- In-Reply-To
- <1210584832-16402-2-git-send-email-srabbelier@gmail.com>
Hi!
On Mon, May 12, 2008 at 11:33 AM, Sverre Rabbelier <srabbelier@gmail.com> wrote:
> This change is needed order to aggregate data on the test run later on. > Because writing to the current directory is not possible, we write to /tmp/. > Suggestions for a better location are welcome.
I have seen this in another (sh) script:
die() {
echo "$@"
exit 1
}T=`mktemp` || die "cannot create temp file" ... rm $T
Vegard
-- "The animistic metaphor of the bug that maliciously sneaked in while the programmer was not looking is intellectually dishonest as it disguises that the error is the programmer's own creation." -- E. W. Dijkstra, EWD1036