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:
parent
aecc6b55dc
commit
6e65ef449b
|
@ -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"/*
|
||||||
|
|
2
test/fixtures/setup.bats
vendored
2
test/fixtures/setup.bats
vendored
|
@ -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"
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user