Skip to content

Commit

Permalink
feat: change _DEFAULT_BOOTSTRAP variable
Browse files Browse the repository at this point in the history
  • Loading branch information
Chemaclass committed Oct 16, 2024
1 parent 682394f commit e6594d4
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions docs/configuration.md
Original file line number Diff line number Diff line change
Expand Up @@ -205,15 +205,15 @@ BASHUNIT_BOOTSTRAP="tests/bootstrap.sh"
```
:::

## Log path
## Dev log

> `BASHUNIT_DEV_LOG=file`
> See: [Globals > log](/globals#log)
::: code-group
```bash [Setup]
BASHUNIT_DEV_LOG="out.log"
BASHUNIT_DEV_LOG="dev.log"
```
```bash [Usage]
log "I am tracing something..."
Expand Down
4 changes: 2 additions & 2 deletions src/env.sh
Original file line number Diff line number Diff line change
Expand Up @@ -8,14 +8,14 @@ set -o allexport
set +o allexport

_DEFAULT_DEFAULT_PATH="tests"
_DEFAULT_LOAD_FILE="tests/bootstrap.sh"
_DEFAULT_BOOTSTRAP="tests/bootstrap.sh"
_DEFAULT_DEV_LOG=""
_DEFAULT_LOG_JUNIT=""
_DEFAULT_REPORT_HTML=""

: "${BASHUNIT_DEFAULT_PATH:=${DEFAULT_PATH:=$_DEFAULT_DEFAULT_PATH}}"
: "${BASHUNIT_DEV_LOG:=${DEV_LOG:=$_DEFAULT_DEV_LOG}}"
: "${BASHUNIT_BOOTSTRAP:=${LOAD_FILE:=$_DEFAULT_LOAD_FILE}}"
: "${BASHUNIT_BOOTSTRAP:=${BOOTSTRAP:=$_DEFAULT_BOOTSTRAP}}"
: "${BASHUNIT_LOG_JUNIT:=${LOG_JUNIT:=$_DEFAULT_LOG_JUNIT}}"
: "${BASHUNIT_REPORT_HTML:=${REPORT_HTML:=$_DEFAULT_REPORT_HTML}}"

Expand Down

0 comments on commit e6594d4

Please sign in to comment.