mirror of
https://github.com/sstephenson/bats.git
synced 2024-11-17 19:52:37 +01:00
17 lines
301 B
Bash
17 lines
301 B
Bash
fixtures() {
|
|
FIXTURE_ROOT="$BATS_TEST_DIRNAME/fixtures/$1"
|
|
bats_trim_filename "$FIXTURE_ROOT" 'RELATIVE_FIXTURE_ROOT'
|
|
}
|
|
|
|
setup() {
|
|
export TMP="$BATS_TEST_DIRNAME/tmp"
|
|
}
|
|
|
|
filter_control_sequences() {
|
|
"$@" | sed $'s,\x1b\\[[0-9;]*[a-zA-Z],,g'
|
|
}
|
|
|
|
teardown() {
|
|
[ -d "$TMP" ] && rm -f "$TMP"/*
|
|
}
|