From 6e65ef449ba92f8f4ee76989ef5df8b5eee3b0ed Mon Sep 17 00:00:00 2001 From: Sam Stephenson Date: Wed, 28 Dec 2011 20:57:58 -0600 Subject: [PATCH] Share $TMP with fixtures --- test/bats.bats | 2 +- test/fixtures/setup.bats | 2 -- 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/test/bats.bats b/test/bats.bats index 924b733..98426d8 100755 --- a/test/bats.bats +++ b/test/bats.bats @@ -1,7 +1,7 @@ #!/usr/bin/env bats FIXTURE_ROOT="$BATS_TEST_DIRNAME/fixtures" -TMP="$BATS_TEST_DIRNAME/tmp" +export TMP="$BATS_TEST_DIRNAME/tmp" teardown() { rm -f "$TMP"/* diff --git a/test/fixtures/setup.bats b/test/fixtures/setup.bats index d96b0af..0b8ebe7 100644 --- a/test/fixtures/setup.bats +++ b/test/fixtures/setup.bats @@ -1,5 +1,3 @@ -TMP="$BATS_TEST_DIRNAME/../tmp" - setup() { echo "$BATS_TEST_NAME" >> "$TMP/setup.log" }