1
0
mirror of https://github.com/sstephenson/bats.git synced 2024-11-17 03:32:27 +01:00

Share $TMP with fixtures

This commit is contained in:
Sam Stephenson 2011-12-28 20:57:58 -06:00
parent aecc6b55dc
commit 6e65ef449b
2 changed files with 1 additions and 3 deletions

View File

@ -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"/*

View File

@ -1,5 +1,3 @@
TMP="$BATS_TEST_DIRNAME/../tmp"
setup() {
echo "$BATS_TEST_NAME" >> "$TMP/setup.log"
}