mirror of
https://github.com/sstephenson/bats.git
synced 2024-12-26 14:39:46 +01:00
Share $TMP with fixtures
This commit is contained in:
parent
aecc6b55dc
commit
6e65ef449b
|
@ -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"/*
|
||||
|
|
2
test/fixtures/setup.bats
vendored
2
test/fixtures/setup.bats
vendored
|
@ -1,5 +1,3 @@
|
|||
TMP="$BATS_TEST_DIRNAME/../tmp"
|
||||
|
||||
setup() {
|
||||
echo "$BATS_TEST_NAME" >> "$TMP/setup.log"
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user