1
0
mirror of https://github.com/sstephenson/bats.git synced 2024-12-27 06:59:45 +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 #!/usr/bin/env bats
FIXTURE_ROOT="$BATS_TEST_DIRNAME/fixtures" FIXTURE_ROOT="$BATS_TEST_DIRNAME/fixtures"
TMP="$BATS_TEST_DIRNAME/tmp" export TMP="$BATS_TEST_DIRNAME/tmp"
teardown() { teardown() {
rm -f "$TMP"/* rm -f "$TMP"/*

View File

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